From bcf72d3bbb78bf271ad9946521f6e707c7d9ecae Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 8 Dec 2014 22:12:21 -0500 Subject: [PATCH] a stub main file for a kivy based ui interface --- main.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..72478fa --- /dev/null +++ b/main.py @@ -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()