mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Basics for QT UI
This commit is contained in:
24
qt_ui/main.py
Normal file
24
qt_ui/main.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import sys
|
||||
from time import sleep
|
||||
|
||||
from PySide2.QtGui import QPixmap
|
||||
from PySide2.QtWidgets import QApplication, QLabel, QSplashScreen
|
||||
|
||||
from qt_ui.windows.QLiberationWindow import QLiberationWindow
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
pixmap = QPixmap("../resources/ui/splash_screen.png")
|
||||
splash = QSplashScreen(pixmap)
|
||||
splash.show()
|
||||
|
||||
sleep(2)
|
||||
app.processEvents()
|
||||
|
||||
window = QLiberationWindow()
|
||||
window.show()
|
||||
|
||||
splash.finish(window)
|
||||
sys.exit(app.exec_())
|
||||
Reference in New Issue
Block a user