-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
32 lines (22 loc) · 714 Bytes
/
Copy pathapp.py
File metadata and controls
32 lines (22 loc) · 714 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
from PyQt5 import uic
from PyQt5.QtWidgets import *
from ui import resources
from ui.main import Main
import sys, time
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setFixedSize(800, 480)
#self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint)
# SHOW SPLASH
self.splash: QSplashScreen = uic.loadUi("./ui/splash.ui")
self.splash.show()
# LOAD UI
self.ui: QWidget = Main()
self.splash.finish(self.ui)
self.setCentralWidget(self.ui)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())