Created
December 9, 2012 18:23
-
-
Save lambdaman2/4246364 to your computer and use it in GitHub Desktop.
Kivy: basic structure
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.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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from kivy.app import App