# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\window.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(842, 528) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(10, 20, 821, 461)) self.groupBox.setObjectName("groupBox") self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(20, 20, 781, 421)) self.label.setStyleSheet("#label{\n" "background-color:#787878;\n" "}") self.label.setText("") self.label.setObjectName("label") self.pushButton = QtWidgets.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(560, 490, 75, 23)) self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(Form) self.pushButton_2.setGeometry(QtCore.QRect(650, 490, 75, 23)) self.pushButton_2.setObjectName("pushButton_2") self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(20, 490, 601, 21)) self.label_2.setStyleSheet("#label_2{\n" "color:red;\n" "\n" "}") self.label_2.setObjectName("label_2") self.pushButton_3 = QtWidgets.QPushButton(Form) self.pushButton_3.setGeometry(QtCore.QRect(740, 490, 75, 23)) self.pushButton_3.setObjectName("pushButton_3") self.label_3 = QtWidgets.QLabel(Form) self.label_3.setGeometry(QtCore.QRect(310, 495, 161, 21)) self.label_3.setObjectName("label_3") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(400, 496, 42, 20)) self.spinBox.setProperty("value", 3) self.spinBox.setObjectName("spinBox") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "识别区域")) self.pushButton.setText(_translate("Form", "视频")) self.pushButton_2.setText(_translate("Form", "打开摄像头")) self.label_2.setText(_translate("Form", "长时间张嘴 司机系不安全驾驶!")) self.pushButton_3.setText(_translate("Form", "停止")) self.label_3.setText(_translate("Form", "不安全判断时间 秒"))
理解问题# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\window.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(842, 528) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(10, 20, 821, 461)) self.groupBox.setObjectName("groupBox") self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(20, 20, 781, 421)) self.label.setStyleSheet("#label{\n" "background-color:#787878;\n" "}") self.label.setText("") self.label.setObjectName("label") self.pushButton = QtWidgets.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(560, 490, 75, 23)) self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(Form) self.pushButton_2.setGeometry(QtCore.QRect(650, 490, 75, 23)) self.pushButton_2.setObjectName("pushButton_2") self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(20, 490, 601, 21)) self.label_2.setStyleSheet("#label_2{\n" "color:red;\n" "\n" "}") self.label_2.setObjectName("label_2") self.pushButton_3 = QtWidgets.QPushButton(Form) self.pushButton_3.setGeometry(QtCore.QRect(740, 490, 75, 23)) self.pushButton_3.setObjectName("pushButton_3") self.label_3 = QtWidgets.QLabel(Form) self.label_3.setGeometry(QtCore.QRect(310, 495, 161, 21)) self.label_3.setObjectName("label_3") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(400, 496, 42, 20)) self.spinBox.setProperty("value", 3) self.spinBox.setObjectName("spinBox") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "识别区域")) self.pushButton.setText(_translate("Form", "视频")) self.pushButton_2.setText(_translate("Form", "打开摄像头")) self.label_2.setText(_translate("Form", "长时间张嘴 司机系不安全驾驶!")) self.pushButton_3.setText(_translate("Form", "停止")) self.label_3.setText(_translate("Form", "不安全判断时间 秒"))
已完成理解「# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\window.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(842, 528) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(10, 20, 821, 461)) self.groupBox.setObjectName("groupBox") self.label = QtWidgets.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(20, 20, 781, 421)) self.label.setStyleSheet("#label{\n" "background-color:#787878;\n" "}") self.label.setText("") self.label.setObjectName("label") self.pushButton = QtWidgets.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(560, 490, 75, 23)) self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(Form) self.pushButton_2.setGeometry(QtCore.QRect(650, 490, 75, 23)) self.pushButton_2.setObjectName("pushButton_2") self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(20, 490, 601, 21)) self.label_2.setStyleSheet("#label_2{\n" "color:red;\n" "\n" "}") self.label_2.setObjectName("label_2") self.pushButton_3 = QtWidgets.QPushButton(Form) self.pushButton_3.setGeometry(QtCore.QRect(740, 490, 75, 23)) self.pushButton_3.setObjectName("pushButton_3") self.label_3 = QtWidgets.QLabel(Form) self.label_3.setGeometry(QtCore.QRect(310, 495, 161, 21)) self.label_3.setObjectName("label_3") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(400, 496, 42, 20)) self.spinBox.setProperty("value", 3) self.spinBox.setObjectName("spinBox") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "识别区域")) self.pushButton.setText(_translate("Form", "视频")) self.pushButton_2.setText(_translate("Form", "打开摄像头")) self.label_2.setText(_translate("Form", "长时间张嘴 司机系不安全驾驶!")) self.pushButton_3.setText(_translate("Form", "停止")) self.label_3.setText(_translate("Form", "不安全判断时间 秒"))」
展开阅读网页