diff --git a/SecondUi.py b/SecondUi.py new file mode 100644 index 0000000..bc1fe9d --- /dev/null +++ b/SecondUi.py @@ -0,0 +1,99 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'SecondUi.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(400, 217) + self.gridLayout = QtWidgets.QGridLayout(Form) + self.gridLayout.setObjectName("gridLayout") + self.formLayout_3 = QtWidgets.QFormLayout() + self.formLayout_3.setObjectName("formLayout_3") + self.pushButton = QtWidgets.QPushButton(Form) + self.pushButton.setObjectName("pushButton") + self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.pushButton) + spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.formLayout_3.setItem(1, QtWidgets.QFormLayout.LabelRole, spacerItem) + self.pushButton_2 = QtWidgets.QPushButton(Form) + self.pushButton_2.setObjectName("pushButton_2") + self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.pushButton_2) + self.pushButton_5 = QtWidgets.QPushButton(Form) + self.pushButton_5.setObjectName("pushButton_5") + self.formLayout_3.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.pushButton_5) + spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.formLayout_3.setItem(3, QtWidgets.QFormLayout.LabelRole, spacerItem1) + self.gridLayout.addLayout(self.formLayout_3, 1, 5, 1, 1) + self.verticalLayout = QtWidgets.QVBoxLayout() + self.verticalLayout.setObjectName("verticalLayout") + self.pushButton_3 = QtWidgets.QPushButton(Form) + self.pushButton_3.setObjectName("pushButton_3") + self.verticalLayout.addWidget(self.pushButton_3) + self.gridLayout.addLayout(self.verticalLayout, 2, 2, 1, 2) + spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.gridLayout.addItem(spacerItem2, 2, 0, 1, 1) + spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem3, 4, 3, 1, 1) + spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.gridLayout.addItem(spacerItem4, 3, 0, 1, 1) + self.formLayout = QtWidgets.QFormLayout() + self.formLayout.setObjectName("formLayout") + self.label = QtWidgets.QLabel(Form) + self.label.setObjectName("label") + self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) + self.lineEdit = QtWidgets.QLineEdit(Form) + self.lineEdit.setObjectName("lineEdit") + self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit) + spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.formLayout.setItem(2, QtWidgets.QFormLayout.FieldRole, spacerItem5) + self.label_2 = QtWidgets.QLabel(Form) + self.label_2.setObjectName("label_2") + self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_2) + self.lineEdit_2 = QtWidgets.QLineEdit(Form) + self.lineEdit_2.setObjectName("lineEdit_2") + self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_2) + spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) + self.formLayout.setItem(5, QtWidgets.QFormLayout.FieldRole, spacerItem6) + self.label_3 = QtWidgets.QLabel(Form) + self.label_3.setObjectName("label_3") + self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_3) + self.lineEdit_3 = QtWidgets.QLineEdit(Form) + self.lineEdit_3.setObjectName("lineEdit_3") + self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.lineEdit_3) + self.gridLayout.addLayout(self.formLayout, 1, 0, 1, 5) + spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem7, 4, 5, 1, 1) + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.pushButton_4 = QtWidgets.QPushButton(Form) + self.pushButton_4.setObjectName("pushButton_4") + self.horizontalLayout_2.addWidget(self.pushButton_4) + self.gridLayout.addLayout(self.horizontalLayout_2, 2, 4, 1, 1) + spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem8, 4, 0, 1, 1) + spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem9, 4, 4, 1, 1) + + self.retranslateUi(Form) + QtCore.QMetaObject.connectSlotsByName(Form) + + def retranslateUi(self, Form): + _translate = QtCore.QCoreApplication.translate + Form.setWindowTitle(_translate("Form", "Form")) + self.pushButton.setText(_translate("Form", "打开文件夹")) + self.pushButton_2.setText(_translate("Form", "打开文件夹")) + self.pushButton_5.setText(_translate("Form", "打开文件夹")) + self.pushButton_3.setText(_translate("Form", "确定")) + self.label.setText(_translate("Form", "训练数据文件:")) + self.label_2.setText(_translate("Form", "测试数据文件:")) + self.label_3.setText(_translate("Form", "测试-存活人数:")) + self.pushButton_4.setText(_translate("Form", "取消"))