mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
Fixed unintentional method overriding
This commit is contained in:
parent
76fec69eda
commit
b33642c361
|
@ -32,7 +32,7 @@ class UI(Frame):
|
||||||
self.canvas.pack()
|
self.canvas.pack()
|
||||||
|
|
||||||
scale = Scale(self, orient=HORIZONTAL, from_=0, to=255,
|
scale = Scale(self, orient=HORIZONTAL, from_=0, to=255,
|
||||||
resolution=1, command=self.update, length=256)
|
resolution=1, command=self.update_scale, length=256)
|
||||||
scale.set(value)
|
scale.set(value)
|
||||||
scale.bind("<ButtonRelease-1>", self.redraw)
|
scale.bind("<ButtonRelease-1>", self.redraw)
|
||||||
scale.pack()
|
scale.pack()
|
||||||
|
@ -41,7 +41,7 @@ class UI(Frame):
|
||||||
# be too slow on some platforms)
|
# be too slow on some platforms)
|
||||||
# self.redraw()
|
# self.redraw()
|
||||||
|
|
||||||
def update(self, value):
|
def update_scale(self, value):
|
||||||
self.value = eval(value)
|
self.value = eval(value)
|
||||||
|
|
||||||
self.redraw()
|
self.redraw()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user