Created
October 14, 2019 22:08
-
-
Save tshirtman/74557082b2ee944f98dbd2863d06ba31 to your computer and use it in GitHub Desktop.
This file contains 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.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
KV = ''' | |
#:import A kivy.animation.Animation | |
<BlinkyButton@Button>: | |
on_press: | |
a = A() | |
for i in range(10): a += A(background_color=(0, 0, 0, 1), t='in_out_quad') + A(background_color=(1, 1, 1, 1), t='in_out_quad') | |
a.start(self) | |
GridLayout: | |
cols: 4 | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
BlinkyButton: | |
''' | |
class Application(App): | |
def build(self): | |
return Builder.load_string(KV) | |
if __name__ == "__main__": | |
Application().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment