-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (21 loc) · 808 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
from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.theming import ThemeManager
from views import IntoScreen, TubeCard
class YLoaderApp(MDApp):
def build(self):
self.theme_cls = ThemeManager()
self.theme_cls.material_style = 'M3'
self.theme_cls.theme_style = 'Dark'
self.theme_cls.primary_palette = 'BlueGray'
self.theme_cls.accent_palette = 'Red'
self.kvs_loader()
self.root = IntoScreen()
return self.root
def on_start(self):
self.root.add_cards()
def kvs_loader(self):
Builder.load_file('views/screens/in_screen/in_screen.kv')
Builder.load_file('views/components/TubeCard/TubeCard.kv')
if __name__ == '__main__':
YLoaderApp().run()