I'm working with with Tkinter in Python and I have an issue with the Scale
widget. What I want to do is an action for certain values of the Scale.
Here is the part of the Scale
code:
self.scale = Scale(from_=0, to=100, tickinterval=20, orient=HORIZONTAL, command= self.scale_onChange)
def scale_onChange(self, value):
if(value >= 10):
print "The value is ten"
Something strange is happening, when I run the script, the scale value is 0 nevertheless the condition seems true and print "The value is ten". Also when I change the value of the scale never matches the condition even if the value is greater than 10.