I have a slider and I want to call a specific function only when the interaction is complete. The idea is to call a function after 500ms (and not before). If the slider continues to move then the call is canceled. In other words, if the slider "rests" for more than 500ms than the function is call.
Thanks
Update
#slider
def updateValue(self):
#self._job = None
#self.preview.updateContourValue(float(self.slider.get() ))
print "updated value"
timer = Timer(5.0, updateValue)
def sliderCallback(self):
timer.cancel()
timer.start()