-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (19 loc) · 623 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
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy import properties as p
from manager.navigation import NavigationManager
class MainSreenManager(NavigationManager):
pass
with open('main.kv', encoding='utf-8') as f:
Builder.load_string(f.read())
class Kvtemplate4App(MDApp):
manager = p.ObjectProperty(None)
def build(self):
self.theme_cls.primary_palette = "Gray"
self.theme_cls.primary_hue = "A200"
self.manager = MainSreenManager()
return self.manager
def on_start(self):
pass
if __name__ == '__main__':
Kvtemplate4App().run()