a stub main file for a kivy based ui interface
This commit is contained in:
parent
ea1ee9c386
commit
bcf72d3bbb
|
@ -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()
|
Loading…
Reference in New Issue