I have a slider and I want to call a specific function only when the interaction is complete. The idea is to call the function after 500 ms (and not earlier). If the slider continues to move, the call is canceled. In other words, if the slider โrestsโ for more than 500 ms, than the function calls.
thank
Update
def updateValue(self):
print "updated value"
timer = Timer(5.0, updateValue)
def sliderCallback(self):
timer.cancel()
timer.start()
source
share