
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", "Построить решение"))

