-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (33 loc) · 1.19 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
import sys
from time import sleep
from PySide6 import QtGui, QtWidgets
from PySide6.QtCore import Qt
from qt_material import apply_stylesheet
from controller import Controller
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
apply_stylesheet(app, theme="light_teal.xml", invert_secondary=True)
pixmap = QtGui.QPixmap("gfx/wolf_splashscreen.png")
pixmap = pixmap.scaled(640, 480)
splash = QtWidgets.QSplashScreen(pixmap)
splash.show()
controller = Controller()
# Unnötig aber geil
splash.showMessage("Lade. ", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Lade.. ", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Lade...", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Lade. ", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Lade.. ", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Lade...", Qt.AlignBottom | Qt.AlignHCenter)
sleep(0.5)
splash.showMessage("Noch einen schönen Tag!", Qt.AlignBottom | Qt.AlignHCenter)
sleep(1)
# Ende
controller.show_main_window()
splash.finish(controller.ui)
app.exec()