mirror of https://github.com/kivy/kivy.git
display 'animation speed = 0' instead of 'no image selected'
when two consecutive images have a animation speed of 0
This commit is contained in:
parent
f4f6e50888
commit
74b425bebc
|
@ -1,4 +1,3 @@
|
|||
# from ki
|
||||
<AnimatedButton>:
|
||||
canvas.before:
|
||||
Color:
|
||||
|
@ -55,7 +54,7 @@
|
|||
id: spdlbl
|
||||
halign: 'center'
|
||||
text_size: self.size
|
||||
text: 'Animation speed: %f FPS' %(1/root.currentObj.anim_delay) if (root.currentObj and root.currentObj.anim_delay > 0) else 'No Image selected'
|
||||
text: 'No Image selected' if not root.currentObj else 'Animation speed: %f FPS' %(1/root.currentObj.anim_delay) if root.currentObj.anim_delay > 0 else 'Animation speed: 0 FPS'
|
||||
Slider:
|
||||
min:0
|
||||
max: 100 if root.currentObj else 0
|
||||
|
|
Loading…
Reference in New Issue