from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1000, 1000)
MainWindow.setMinimumSize(QtCore.QSize(970, 0))
MainWindow.setMaximumSize(QtCore.QSize(970, 16777215))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(40, 90, 211, 211))
self.label.setText("")
self.label.setPixmap(QtGui.QPixmap("../../../bak1.png"))
self.label.setScaledContents(True)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(10, 0, 131, 71))
self.label_2.setText("")
self.label_2.setPixmap(QtGui.QPixmap("../../../ASUTP.png"))
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setEnabled(True)
self.label_3.setGeometry(QtCore.QRect(240, 10, 331, 41))
font = QtGui.QFont()
font.setPointSize(9)
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.label_3.setFont(font)
self.label_3.setMouseTracking(False)
self.label_3.setTabletTracking(False)
self.label_3.setAcceptDrops(False)
self.label_3.setAutoFillBackground(False)
self.label_3.setStyleSheet("border: 2px solid black;\n"
"border-radius: 10;")
self.label_3.setScaledContents(True)
self.label_3.setWordWrap(True)
self.label_3.setOpenExternalLinks(False)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(280, 60, 251, 21))
font = QtGui.QFont()
font.setBold(False)
font.setItalic(False)
font.setUnderline(True)
font.setWeight(50)
self.label_4.setFont(font)
self.label_4.setScaledContents(True)
self.label_4.setWordWrap(True)
self.label_4.setObjectName("label_4")
self.checkBox = QtWidgets.QCheckBox(self.centralwidget)
self.vlayout = QtWidgets.QVBoxLayout()
self.vlayout.addWidget(self.checkBox)
self.checkBox.stateChanged.connect(lambda: self.selectСheckBox())
self.checkBox.setGeometry(QtCore.QRect(40, 330, 331, 21))
self.checkBox.setObjectName("checkBox")
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(470, 90, 251, 211))
self.label_5.setText("")
self.label_5.setPixmap(QtGui.QPixmap("../../../bak2.png"))
self.label_5.setScaledContents(True)
self.label_5.setObjectName("label_5")
self.checkBox_2 = QtWidgets.QCheckBox(self.centralwidget)
self.checkBox_2.setGeometry(QtCore.QRect(470, 330, 311, 21))
self.checkBox_2.setObjectName("checkBox_2")
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(40, 370, 371, 61))
font = QtGui.QFont()
font.setUnderline(True)
self.label_6.setFont(font)
self.label_6.setScaledContents(True)
self.label_6.setWordWrap(True)
self.label_6.setObjectName("label_6")
self.checkBox_3 = QtWidgets.QCheckBox(self.centralwidget)
self.checkBox_3.setGeometry(QtCore.QRect(40, 440, 21, 21))
self.checkBox_3.setTabletTracking(False)
self.checkBox_3.setText("")
self.checkBox_3.setObjectName("checkBox_3")
self.label_7 = QtWidgets.QLabel(self.centralwidget)
self.label_7.setGeometry(QtCore.QRect(70, 430, 311, 41))
self.label_7.setScaledContents(True)
self.label_7.setWordWrap(True)
self.label_7.setObjectName("label_7")
self.label_8 = QtWidgets.QLabel(self.centralwidget)
self.label_8.setGeometry(QtCore.QRect(40, 480, 281, 21))
self.label_8.setScaledContents(True)
self.label_8.setObjectName("label_8")
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setGeometry(QtCore.QRect(300, 480, 81, 21))
self.lineEdit.setObjectName("lineEdit")
self.label_9 = QtWidgets.QLabel(self.centralwidget)
self.label_9.setGeometry(QtCore.QRect(390, 480, 31, 21))
self.label_9.setScaledContents(True)
self.label_9.setObjectName("label_9")
self.label_10 = QtWidgets.QLabel(self.centralwidget)
self.label_10.setGeometry(QtCore.QRect(40, 520, 281, 21))
self.label_10.setScaledContents(True)
self.label_10.setObjectName("label_10")
self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit_2.setGeometry(QtCore.QRect(300, 520, 81, 21))
self.lineEdit_2.setObjectName("lineEdit_2")
self.label_12 = QtWidgets.QLabel(self.centralwidget)
self.label_12.setGeometry(QtCore.QRect(390, 520, 51, 21))
self.label_12.setScaledContents(True)
self.label_12.setObjectName("label_12")
self.label_11 = QtWidgets.QLabel(self.centralwidget)
self.label_11.setGeometry(QtCore.QRect(470, 380, 341, 41))
font = QtGui.QFont()
font.setUnderline(True)
self.label_11.setFont(font)
self.label_11.setScaledContents(True)
self.label_11.setWordWrap(True)
self.label_11.setObjectName("label_11")
self.label_13 = QtWidgets.QLabel(self.centralwidget)
self.label_13.setGeometry(QtCore.QRect(500, 430, 371, 31))
self.label_13.setScaledContents(True)
self.label_13.setWordWrap(True)
self.label_13.setObjectName("label_13")
self.checkBox_4 = QtWidgets.QCheckBox(self.centralwidget)
self.checkBox_4.setGeometry(QtCore.QRect(470, 436, 21, 21))
self.checkBox_4.setTabletTracking(False)
self.checkBox_4.setText("")
self.checkBox_4.setObjectName("checkBox_4")
self.label_14 = QtWidgets.QLabel(self.centralwidget)
self.label_14.setGeometry(QtCore.QRect(920, 510, 51, 21))
self.label_14.setScaledContents(True)
self.label_14.setObjectName("label_14")
self.label_15 = QtWidgets.QLabel(self.centralwidget)
self.label_15.setGeometry(QtCore.QRect(470, 470, 261, 21))
self.label_15.setScaledContents(True)
self.label_15.setObjectName("label_15")
self.label_16 = QtWidgets.QLabel(self.centralwidget)
self.label_16.setGeometry(QtCore.QRect(470, 500, 241, 21))
self.label_16.setScaledContents(True)
self.label_16.setObjectName("label_16")
self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit_3.setGeometry(QtCore.QRect(830, 475, 81, 21))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 944, 18))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def selectСheckBox(self):
if self.checkBox.isChecked():
self.LineEdit.setReadOnly(True)
else:
self.LineEdit.setReadOnly(False)