Skip to content

Instantly share code, notes, and snippets.

@lambdaman2
Created December 9, 2012 18:23
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 lambdaman2/4246364 to your computer and use it in GitHub Desktop.
Save lambdaman2/4246364 to your computer and use it in GitHub Desktop.
Kivy: basic structure
from kivy.app import app
from kivy.uix.widget import Widget
class MyPaintWidget(Widget):
"""docstring for MyPaintWidget"""
pass
class MyPaintApp(App):
"""docstring for MyPaintApp"""
def build(self):
return MyPaintWidget()
if __name__ == '__main__':
MyPaintApp().run()
@antoinelebel
Copy link

from kivy.app import App

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment