-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__main__.py
More file actions
45 lines (31 loc) · 853 Bytes
/
__main__.py
File metadata and controls
45 lines (31 loc) · 853 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import ctypes, sys
from multiprocessing import freeze_support
from misc.constants import APPID
from misc.logger import Logger
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import QApplication, QSplashScreen
from main import Window
import main_rc as _
if __name__ == "__main__":
# Freeze Support
freeze_support()
# Update App ID if Windows
if sys.platform.startswith("win"):
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(APPID)
# Prep App Launch
app = QApplication(sys.argv)
# Show Splash
pixmap = QPixmap(":/main/uclogo.png")
splash = QSplashScreen(pixmap)
splash.show()
# Process
app.processEvents()
# Start Logger
Logger()
# Setup Window
win = Window()
# Show
win.show()
splash.finish(win)
# End
sys.exit(app.exec())