a stub main file for a kivy based ui interface

This commit is contained in:
Kienan Stewart 2014-12-08 22:12:21 -05:00
parent ea1ee9c386
commit bcf72d3bbb
1 changed files with 21 additions and 0 deletions

21
main.py Normal file
View File

@ -0,0 +1,21 @@
import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
class MyApp(App):
def build(self):
return Label(text=unicode('Temperature Logger'))
class MainScreen(BoxLayout):
def __init__(self, **kwargs):
super(MainScreen, self).__init__(**kwargs)
self.orientation = 'vertical'
top = new BoxLayout(orientation = 'horizontal')
self.add_widget(top)
pass
if __name__ == '__main__':
MyApp().run()