1
0
Fork 0

Make Slider.touch return True when the value changed

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
Francesco Gazzetta 2021-11-20 17:40:52 +01:00
parent 9a1964ce41
commit fd5d6cbbe8

View file

@ -430,7 +430,9 @@ class Slider():
v = 0
elif v >= self._steps:
v = self._steps - 1
changed = self.value != v
self.value = v
return changed
class Spinner():
"""A simple Spinner widget.