Created
June 19, 2013 22:17
-
-
Save Kovak/5818636 to your computer and use it in GitHub Desktop.
This file contains 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 * | |
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() |
This file contains 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
#: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