Last active
December 30, 2015 13:29
-
-
Save inclement/7835867 to your computer and use it in GitHub Desktop.
Kivy crash course 3 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