Created
April 6, 2015 14:33
-
-
Save tshirtman/9c8ab3692927df2b1a89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.base import runTouchApp | |
from kivy.lang import Builder | |
KV = ''' | |
#:import Animation kivy.animation.Animation | |
FloatLayout: | |
BoxLayout: | |
id: box | |
orientation: 'vertical' | |
size_hint: .4, .4 | |
center_x: root.center_x | |
center_y: root.center_y | |
Button: | |
text: 'push me' | |
on_press: | |
( | |
Animation(right=0, t='out_elastic') + | |
Animation() + | |
Animation(center_x=root.center_x, t='out_elastic') | |
).start(box) | |
''' | |
runTouchApp(Builder.load_string(KV)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment