From b33642c36163888dde547b7f754f3b3169890faa Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 2 Apr 2015 19:46:35 +1100 Subject: [PATCH] Fixed unintentional method overriding --- Scripts/thresholder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/thresholder.py b/Scripts/thresholder.py index 1e55c5a32..bfeebfa9f 100644 --- a/Scripts/thresholder.py +++ b/Scripts/thresholder.py @@ -32,7 +32,7 @@ class UI(Frame): self.canvas.pack() 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.bind("", self.redraw) scale.pack() @@ -41,7 +41,7 @@ class UI(Frame): # be too slow on some platforms) # self.redraw() - def update(self, value): + def update_scale(self, value): self.value = eval(value) self.redraw()