-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
48 lines (28 loc) · 839 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from kivy.app import App
from kivy.logger import Logger
from kivy.uix.widget import Widget
from kivy.uix.screenmanager import ScreenManager, Screen
use_kivy_settings = False
class MenuScreen(Screen):
pass
class HostScreen(Screen):
pass
class ContestantScreen(Screen):
pass
class CreateScreen(Screen):
pass
class Casey(Widget):
pass
class CaseyApp(App):
def build(self):
self.title = 'Casey - Knowledge Challenge'
sm = ScreenManager()
sm.add_widget(MenuScreen(name='menu'))
sm.add_widget(HostScreen(name='host'))
sm.add_widget(ContestantScreen(name='contestant'))
sm.add_widget(CreateScreen(name='create'))
return sm
def on_stop(self):
Logger.debug('CaseyApp: Running on_stop()')
if __name__ == '__main__':
CaseyApp().run()