-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
40 lines (27 loc) · 768 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
30
31
32
33
34
35
36
37
38
39
40
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
from qt_material import apply_stylesheet
import menu as m
import screen as s
class Window(QMainWindow):
def __init__(self, app):
super().__init__()
self.app = app
self.setUI()
def setUI(self):
w = QWidget()
v = QVBoxLayout()
self.menu_bar = m.Menu2(self)
self.screen = s.Screen()
#v.addWidget(self.menu_bar)
v.addWidget(self.screen)
w.setLayout(v)
self.setCentralWidget(w)
if __name__ == "__main__":
app = QApplication(sys.argv)
apply_stylesheet(app, theme='light_blue.xml')
w = Window(app)
w.show()
sys.exit(app.exec())