Created
December 2, 2013 00:32
-
-
Save inclement/7742944 to your computer and use it in GitHub Desktop.
Kivy crash course 2, starting code
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.app import App | |
| from kivy.uix.scatter import Scatter | |
| from kivy.uix.label import Label | |
| from kivy.uix.floatlayout import FloatLayout | |
| class TutorialApp(App): | |
| def build(self): | |
| f = FloatLayout() | |
| s = Scatter() | |
| l = Label(text="Hello!", | |
| font_size=150) | |
| f.add_widget(s) | |
| s.add_widget(l) | |
| return f | |
| if __name__ == "__main__": | |
| TutorialApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment