Skip to content

Instantly share code, notes, and snippets.

@Kovak
Created May 11, 2014 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kovak/f5e1539c938c3595a54e to your computer and use it in GitHub Desktop.
Save Kovak/f5e1539c938c3595a54e to your computer and use it in GitHub Desktop.
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.lang import Builder
Builder.load_string("""
<RootWidget>:
Label:
text: 'Hello World'
size: root.size
pos: root.pos
""")
class RootWidget(Widget):
pass
class HelloWorldApp(App):
def build(self):
return RootWidget()
if __name__ == '__main__':
HelloWorldApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment