-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (23 loc) · 872 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
from sources.PyStrato import *
import sys
def main(*args):
qdarktheme.enable_hi_dpi()
app = QApplication(sys.argv)
currentDirectory = os.path.dirname(os.path.realpath(__file__))
splashScreenPath = os.path.join(currentDirectory, "sources/icons/SplashScreen.png")
splashScreen = LoadingSplashScreen(splashScreenPath, currentDirectory)
pyStratoGui = PyStratoGui(currentDirectory)
def showPyStratoGui(loadingData):
pyStratoGui.initializeUI(loadingData)
if pyStratoGui.settings['MAXIMIZED']:
pyStratoGui.showMaximized()
else:
pyStratoGui.showNormal()
pyStratoGui.show()
splashScreen.close()
splashScreen.progressTimer.stop()
splashScreen.workerFinished.connect(showPyStratoGui)
splashScreen.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()