Skip to content

Instantly share code, notes, and snippets.

@Kovak
Created June 19, 2013 22:17
Show Gist options
  • Save Kovak/5818636 to your computer and use it in GitHub Desktop.
Save Kovak/5818636 to your computer and use it in GitHub Desktop.
from kivy.app import *
from kivy.uix.widget import Widget
from kivy.uix.button import Button
class MyHomeScreen(Widget):
pass
class ButtonTest(Button):
pass
class MyAlarmApp(App):
def build(self):
pass
if __name__ == '__main__':
MyAlarmApp().run()
#:kivy 1.0.9
MyHomeScreen:
<MyHomeScreen>:
BoxLayout:
size: 800, 600
#orientation:"vertical"
spacing: 10
on_size: print 'box_layout_size', self.size
ButtonTest:
<ButtonTest>:
text: "1"
size_hint: (1, 1)
on_size: print 'button interior size', self.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment