Skip to content

Instantly share code, notes, and snippets.

@el3
Created May 26, 2018 14:02
Show Gist options
  • Save el3/fb1002a0a25109f44c24550169856c68 to your computer and use it in GitHub Desktop.
Save el3/fb1002a0a25109f44c24550169856c68 to your computer and use it in GitHub Desktop.
from kivy.app import App
from kivy.lang import Builder
KV = """
<Widget>:
background_color: (1,1,1,1)
background_normal: ""
color: (1,0,0,1)
font_size: "30sp"
BoxLayout:
Button:
text: "Button1"
Button:
background_color: (0,0,0,1)
color: (1,1,1,1)
text: "Button2"
Button:
text: "Button3"
"""
class MyApp(App):
def build(self):
return Builder.load_string(KV)
MyApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment