display 'animation speed = 0' instead of 'no image selected'

when two consecutive images have a animation speed of 0
This commit is contained in:
akshayaurora 2011-10-31 23:34:24 +05:30
parent f4f6e50888
commit 74b425bebc
1 changed files with 1 additions and 2 deletions

View File

@ -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