Skip to content

Instantly share code, notes, and snippets.

@inclement
Last active December 30, 2015 13:29
Show Gist options
  • Select an option

  • Save inclement/7835867 to your computer and use it in GitHub Desktop.

Select an option

Save inclement/7835867 to your computer and use it in GitHub Desktop.
Kivy crash course 3 starting code
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