-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.py
More file actions
32 lines (25 loc) · 950 Bytes
/
MainWindow.py
File metadata and controls
32 lines (25 loc) · 950 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
32
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
from PyQt5 import QtCore
from resource.ui_MainWindow import Ui_MainWindow
from faceWidget import FaceWidget
from PyQt5.QtGui import QIcon
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.initUI()
def initUI(self):
self.setupUi(self)
self.resize(1300, 900)
self.setMinimumSize(QtCore.QSize(1150, 800))
self.setWindowTitle('RailAdjust V1.0.0')
self.face = FaceWidget()
self.setCentralWidget(self.face)
self.actionload.triggered.connect(self.face.loadFile)
self.actionsave.triggered.connect(self.face.saveFile)
if __name__ == '__main__':
app = QApplication(sys.argv)
mainWin = MainWindow()
app.setWindowIcon(QIcon('./resource/images/logo_ico.ico'))
mainWin.show()
sys.exit(app.exec_())