-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.py
64 lines (59 loc) · 3.2 KB
/
mainwindow.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from PyQt5 import QtCore, QtGui, QtWidgets
# Окно проекта
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1040, 720)
MainWindow.setMinimumSize(QtCore.QSize(1040, 720))
MainWindow.setMaximumSize(QtCore.QSize(1040, 720))
self.centralWidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralWidget.sizePolicy().hasHeightForWidth())
self.centralWidget.setSizePolicy(sizePolicy)
self.centralWidget.setObjectName("centralWidget")
self.tittle = QtWidgets.QLabel(self.centralWidget)
self.tittle.setGeometry(QtCore.QRect(0, 0, 1041, 71))
self.tittle.setText("")
self.tittle.setPixmap(QtGui.QPixmap("images/tittle.png"))
self.tittle.setObjectName("tittle")
self.background = QtWidgets.QLabel(self.centralWidget)
self.background.setGeometry(QtCore.QRect(0, 0, 1051, 721))
self.background.setText("")
self.background.setPixmap(QtGui.QPixmap("images/background.png"))
self.background.setWordWrap(False)
self.background.setObjectName("background")
self.frame = QtWidgets.QFrame(self.centralWidget)
self.frame.setGeometry(QtCore.QRect(40, 110, 480, 480))
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.openFileButton = QtWidgets.QPushButton(self.centralWidget)
self.openFileButton.setGeometry(QtCore.QRect(60, 600, 131, 32))
self.openFileButton.setObjectName("openFileButton")
self.solutionButton = QtWidgets.QPushButton(self.centralWidget)
self.solutionButton.setGeometry(QtCore.QRect(190, 600, 171, 32))
self.solutionButton.setObjectName("solutionButton")
self.solutionLabel = QtWidgets.QLabel(self.centralWidget)
self.solutionLabel.setGeometry(QtCore.QRect(520, 110, 480, 480))
font = QtGui.QFont()
font.setPointSize(14)
self.solutionLabel.setFont(font)
self.solutionLabel.setText("")
self.solutionLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.solutionLabel.setWordWrap(True)
self.solutionLabel.setObjectName("solutionLabel")
self.background.raise_()
self.tittle.raise_()
self.frame.raise_()
self.openFileButton.raise_()
self.solutionButton.raise_()
self.solutionLabel.raise_()
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "BGraph"))
self.openFileButton.setText(_translate("MainWindow", " Открыть файл"))
self.solutionButton.setText(_translate("MainWindow", "Построить решение"))