Make Slider.touch return True when the value changed
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
parent
9a1964ce41
commit
fd5d6cbbe8
1 changed files with 2 additions and 0 deletions
|
@ -430,7 +430,9 @@ class Slider():
|
||||||
v = 0
|
v = 0
|
||||||
elif v >= self._steps:
|
elif v >= self._steps:
|
||||||
v = self._steps - 1
|
v = self._steps - 1
|
||||||
|
changed = self.value != v
|
||||||
self.value = v
|
self.value = v
|
||||||
|
return changed
|
||||||
|
|
||||||
class Spinner():
|
class Spinner():
|
||||||
"""A simple Spinner widget.
|
"""A simple Spinner widget.
|
||||||
|
|
Loading…
Reference in a new issue