Basics for QT UI

This commit is contained in:
Khopa
2019-07-03 23:33:47 +02:00
parent a30d4a4514
commit 4652e7d188
6 changed files with 120 additions and 0 deletions

24
qt_ui/main.py Normal file
View 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_())