Skip to content

Instantly share code, notes, and snippets.

@inclement
Created December 2, 2013 00:32
Show Gist options
  • Select an option

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

Select an option

Save inclement/7742944 to your computer and use it in GitHub Desktop.
Kivy crash course 2, 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