-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (20 loc) · 740 Bytes
/
main.py
File metadata and controls
27 lines (20 loc) · 740 Bytes
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
import sys
from PyQt5.QtWidgets import QApplication
from pyrebase import pyrebase
from domain.assetmanager import get_config, load_theme
from model.repo.MainRepo import mainRepo
from view.widgets.EnteringWindow import EnteringWindow
import assets.app_theme_resources
def establish_firebase():
firebase_config = get_config()
return pyrebase.initialize_app(firebase_config)
def load_dark_theme(application: QApplication):
style_sheet = load_theme(":/dark/stylesheet.qss")
application.setStyleSheet(style_sheet)
if __name__ == "__main__":
firebase = establish_firebase()
mainRepo.initialize(firebase)
app = QApplication(sys.argv)
load_dark_theme(app)
EnteringWindow().show()
sys.exit(app.exec())