-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (29 loc) · 1.29 KB
/
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
from kivymd.app import MDApp
from kivy.core.text import LabelBase
from kivy.lang import Builder
from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenManager
from kivymd.uix.behaviors import FakeRectangularElevationBehavior
from kivymd.uix.floatlayout import MDFloatLayout
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.image import Image
from kivymd.uix.behaviors.toggle_behavior import MDToggleButton
from kivymd.uix.button import MDFillRoundFlatIconButton
Window.size = (310,580)
class Navbar(FakeRectangularElevationBehavior, MDFloatLayout):
pass
class ImageButton(ButtonBehavior, Image):
pass
class MyToggleButton(MDFillRoundFlatIconButton, MDToggleButton):
pass
class PBLApp(MDApp):
def build(self):
screen_manager = ScreenManager()
screen_manager.add_widget(Builder.load_file("main.kv"))
screen_manager.add_widget(Builder.load_file("login.kv"))
screen_manager.add_widget(Builder.load_file("signup.kv"))
screen_manager.add_widget(Builder.load_file("home.kv"))
return screen_manager
LabelBase.register(name="MPoppins", fn_regular="C:\Windows\Fonts\Poppins-Medium.ttf")
LabelBase.register(name="BPoppins", fn_regular="C:\Windows\Fonts\Poppins-SemiBold.ttf")
PBLApp().run()