Esempio n. 1
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1400, 1000)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(139, 20, 700, 700))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(40, 120, 75, 23))
        self.pushButton.setObjectName("pushButton")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 23))
        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 retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "show"))
Esempio n. 2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralWidget)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(
            50, 20, 561, 271))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.matplotlibwidget_dynamic = MatplotlibWidget(self.centralWidget)
        self.matplotlibwidget_dynamic.setGeometry(
            QtCore.QRect(49, 289, 561, 271))
        self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")
        self.pushButton = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton.setGeometry(QtCore.QRect(670, 140, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton_2.setGeometry(QtCore.QRect(670, 440, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralWidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "显示静态图"))
        self.pushButton_2.setText(_translate("MainWindow", "显示动态图"))
Esempio n. 3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(694, 588)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.widget = MatplotlibWidget(self.centralWidget)
        self.widget.setGeometry(QtCore.QRect(10, 50, 661, 280))
        self.widget.setObjectName("widget")
        self.widget_2 = MatplotlibWidget(self.centralWidget)
        self.widget_2.setGeometry(QtCore.QRect(10, 320, 661, 280))
        self.widget_2.setObjectName("widget_2")
        self.pushButton = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton.setGeometry(QtCore.QRect(10, 25, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton_2.setGeometry(QtCore.QRect(100, 25, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralWidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "显示静态图"))
        self.pushButton_2.setText(_translate("MainWindow", "显示动态图"))
Esempio n. 4
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(589, 560)
        self.matplotlibwidget_static = MatplotlibWidget(Form)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(0, 0, 481, 271))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.showStaticButton = QtWidgets.QPushButton(Form)
        self.showStaticButton.setGeometry(QtCore.QRect(510, 100, 75, 23))
        self.showStaticButton.setObjectName("showStaticButton")
        self.showDynamicButton = QtWidgets.QPushButton(Form)
        self.showDynamicButton.setGeometry(QtCore.QRect(510, 390, 75, 23))
        self.showDynamicButton.setObjectName("showDynamicButton")
        self.matplotlibwidget_dynamic = MatplotlibWidget(Form)
        self.matplotlibwidget_dynamic.setGeometry(
            QtCore.QRect(-10, 270, 491, 291))
        self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.showStaticButton.setText(_translate("Form", "显示静态图"))
        self.showDynamicButton.setText(_translate("Form", "显示动态图"))
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(740, 475)
        self.logisticWidget = MatplotlibWidget(Form)
        self.logisticWidget.setGeometry(QtCore.QRect(10, 70, 721, 401))
        self.logisticWidget.setObjectName("logisticWidget")
        self.powerSpinBox = QtWidgets.QSpinBox(Form)
        self.powerSpinBox.setGeometry(QtCore.QRect(140, 10, 121, 20))
        self.powerSpinBox.setMinimum(1)
        self.powerSpinBox.setMaximum(20)
        self.powerSpinBox.setObjectName("powerSpinBox")
        self.lambdaHorizontalScrollBar = QtWidgets.QScrollBar(Form)
        self.lambdaHorizontalScrollBar.setGeometry(
            QtCore.QRect(140, 40, 141, 17))
        self.lambdaHorizontalScrollBar.setMaximum(150)
        self.lambdaHorizontalScrollBar.setOrientation(QtCore.Qt.Horizontal)
        self.lambdaHorizontalScrollBar.setObjectName(
            "lambdaHorizontalScrollBar")
        self.label = QtWidgets.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(70, 10, 30, 20))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(40, 40, 66, 16))
        self.label_2.setObjectName("label_2")
        self.lambdaLabel = QtWidgets.QLabel(Form)
        self.lambdaLabel.setGeometry(QtCore.QRect(340, 40, 40, 16))
        self.lambdaLabel.setText("")
        self.lambdaLabel.setObjectName("lambdaLabel")
        self.startButton = QtWidgets.QPushButton(Form)
        self.startButton.setGeometry(QtCore.QRect(650, 30, 75, 23))
        self.startButton.setObjectName("startButton")
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(330, 0, 80, 40))
        self.label_3.setObjectName("label_3")
        self.accuracyLabel = QtWidgets.QLabel(Form)
        self.accuracyLabel.setGeometry(QtCore.QRect(410, 0, 80, 40))
        self.accuracyLabel.setText("")
        self.accuracyLabel.setObjectName("accuracyLabel")

        self.retranslateUi(Form)
        self.powerSpinBox.valueChanged['int'].connect(
            Form.updataLogisticRegression)
        self.lambdaHorizontalScrollBar.valueChanged['int'].connect(
            Form.updataLogisticRegression)
        self.lambdaHorizontalScrollBar.valueChanged['int'].connect(
            Form.lambdaRateChange)
        self.startButton.clicked.connect(Form.showBound)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label.setText(_translate("Form", "Power"))
        self.label_2.setText(_translate("Form", "lambadaRate"))
        self.startButton.setText(_translate("Form", "决策边界"))
        self.label_3.setText(_translate("Form", "模型准确率:"))
Esempio n. 6
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        # window = QMainWindow()
        # window.resize(800, 600)

        # self.centralwidget = QtWidgets.QWidget(MainWindow)
        # self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.stack = QStackedWidget(parent=MainWindow)
        self.centralwidget = QStackedWidget(parent=MainWindow)

        self.centralwidget.setObjectName("centralwidget")

        # self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        matplotlibwidget_static = MatplotlibWidget()
        matplotlibwidget_static.setGeometry(QtCore.QRect(10, 0, 611, 271))
        matplotlibwidget_static.setObjectName("matplotlibwidget_static")

        self.stack.addWidget(matplotlibwidget_static)

        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(670, 80, 75, 23))
        self.pushButton.setObjectName("pushButton")

        # self.matplotlibwidget_dynamic = MatplotlibWidget()
        # self.matplotlibwidget_dynamic.setEnabled(True)
        # self.matplotlibwidget_dynamic.setGeometry(QtCore.QRect(10, 270, 611, 291))
        # self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")
        matplotlibwidget_dynamic = MatplotlibWidget()
        matplotlibwidget_dynamic.setEnabled(True)
        matplotlibwidget_dynamic.setGeometry(QtCore.QRect(10, 0, 611, 271))
        matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")

        self.stack.addWidget(matplotlibwidget_dynamic)

        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(670, 370, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralwidget)

        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
        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)
        self.stack.show()
Esempio n. 7
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(400, 300)
        self.widget = MatplotlibWidget(Form)
        self.widget.setGeometry(QtCore.QRect(10, 10, 381, 281))
        self.widget.setObjectName("widget")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
Esempio n. 8
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(504, 374)
        self.pakagename = QtWidgets.QLabel(Form)
        self.pakagename.setGeometry(QtCore.QRect(30, 30, 60, 16))
        self.pakagename.setObjectName("pakagename")

        self.packege_name = QtWidgets.QLineEdit(Form)
        self.packege_name.setGeometry(QtCore.QRect(90, 30, 131, 21))
        self.packege_name.setObjectName("packege_name")

        self.updateetime = QtWidgets.QLabel(Form)
        self.updateetime.setGeometry(QtCore.QRect(260, 30, 60, 16))
        self.updateetime.setObjectName("updateetime")

        self.update_time = QtWidgets.QLineEdit(Form)
        self.update_time.setGeometry(QtCore.QRect(330, 30, 81, 21))
        self.update_time.setObjectName("update_time")
        self.start_btn = QtWidgets.QPushButton(Form)
        self.start_btn.setGeometry(QtCore.QRect(80, 70, 81, 32))
        self.start_btn.setObjectName("start_btn")
        self.stop_btn = QtWidgets.QPushButton(Form)
        self.stop_btn.setGeometry(QtCore.QRect(210, 70, 81, 32))
        self.stop_btn.setObjectName("stop_btn")
        self.clear_btn = QtWidgets.QPushButton(Form)
        self.clear_btn.setGeometry(QtCore.QRect(330, 70, 71, 32))
        self.clear_btn.setObjectName("clear_btn")
        self.graph = QtWidgets.QLabel(Form)
        self.graph.setGeometry(QtCore.QRect(20, 190, 60, 16))
        self.graph.setObjectName("graph")

        #self.graph_photo = QtWidgets.QGraphicsView(Form)
        self.graph_photo = MatplotlibWidget(Form)
        self.graph_photo.setGeometry(QtCore.QRect(70, 150, 381, 201))
        self.graph_photo.setObjectName("graph_photo")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.pakagename.setText(_translate("Form", "应用名称"))
        self.updateetime.setText(_translate("Form", "更新时间"))
        self.start_btn.setText(_translate("Form", "开始"))
        self.stop_btn.setText(_translate("Form", "结束"))
        self.clear_btn.setText(_translate("Form", "清除"))
        self.graph.setText(_translate("Form", "图表"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(579, 369)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.widget = MatplotlibWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(10, 40, 421, 271))
        self.widget.setObjectName("widget")
        self.startButton = QtWidgets.QPushButton(self.centralwidget)
        self.startButton.setGeometry(QtCore.QRect(460, 70, 93, 81))
        self.startButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("play.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.startButton.setIcon(icon)
        self.startButton.setIconSize(QtCore.QSize(80, 80))
        self.startButton.setObjectName("startButton")
        self.endButton = QtWidgets.QPushButton(self.centralwidget)
        self.endButton.setGeometry(QtCore.QRect(460, 200, 93, 81))
        self.endButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("stop.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.endButton.setIcon(icon1)
        self.endButton.setIconSize(QtCore.QSize(80, 80))
        self.endButton.setObjectName("endButton")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 579, 26))
        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 retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Audio"))
Esempio n. 10
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(10, 0, 611, 271))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(670, 80, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.matplotlibwidget_dynamic = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_dynamic.setEnabled(True)
        self.matplotlibwidget_dynamic.setGeometry(
            QtCore.QRect(10, 270, 611, 291))
        self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(670, 370, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
        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 retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "显示静态图"))
        self.pushButton_2.setText(_translate("MainWindow", "显示动态图"))
Esempio n. 11
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(10, 0, 611, 271))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(670, 80, 75, 23))
        self.pushButton.setObjectName("pushButton")
        self.matplotlibwidget_dynamic = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_dynamic.setEnabled(True)
        self.matplotlibwidget_dynamic.setGeometry(QtCore.QRect(10, 270, 611, 291))
        self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(670, 370, 75, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
        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 retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "显示静态图"))
        self.pushButton_2.setText(_translate("MainWindow", "显示动态图"))
Esempio n. 12
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1000, 800)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static.setGeometry(
            QtCore.QRect(490, 10, 210, 700))
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(10, 30, 101, 23))
        self.pushButton.setObjectName("pushButton")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(10, 240, 101, 23))
        self.pushButton_2.setObjectName("pushButton_2")
        self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_4.setGeometry(QtCore.QRect(140, 290, 75, 23))
        self.pushButton_4.setObjectName("pushButton_4")
        self.matplotlibwidget_static_2 = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static_2.setGeometry(
            QtCore.QRect(260, 30, 881, 701))
        self.matplotlibwidget_static_2.setObjectName(
            "matplotlibwidget_static_2")
        self.horizontalSlider = QtWidgets.QSlider(
            self.matplotlibwidget_static_2)
        self.horizontalSlider.setGeometry(QtCore.QRect(120, 490, 321, 22))
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName("horizontalSlider")
        self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_3.setGeometry(QtCore.QRect(140, 210, 75, 23))
        self.pushButton_3.setObjectName("pushButton_3")
        self.pushButton_6 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_6.setGeometry(QtCore.QRect(10, 410, 75, 23))
        self.pushButton_6.setObjectName("pushButton_6")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 23))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.pushButton.clicked.connect(self.matplotlibwidget_static.show)
        self.pushButton_2.clicked.connect(self.matplotlibwidget_static_2.show)
        self.pushButton_2.clicked.connect(self.pushButton_4.show)
        self.pushButton.clicked.connect(self.matplotlibwidget_static_2.hide)
        self.pushButton.clicked.connect(self.pushButton_4.hide)
        self.pushButton_2.clicked.connect(self.matplotlibwidget_static.hide)
        self.pushButton.clicked.connect(self.pushButton_3.hide)
        self.pushButton_2.clicked.connect(self.pushButton_3.show)
        self.pushButton_3.clicked.connect(self.openfile)

        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "weights"))
        self.pushButton_2.setText(_translate("MainWindow", "archietecture"))
        self.pushButton_4.setText(_translate("MainWindow", "predict"))
        self.pushButton_3.setText(_translate("MainWindow", "choose data"))
        self.pushButton_6.setText(_translate("MainWindow", "Deep"))

    def openfile(self):
        openfile_name = QFileDialog.getOpenFileName(
            self, 'Choose the file', '', 'Excel files(*.xlsx , *.xls)')
Esempio n. 13
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(1610, 914)
        self.groupBox = QtWidgets.QGroupBox(Form)
        self.groupBox.setGeometry(QtCore.QRect(0, 20, 1561, 921))
        font = QtGui.QFont()
        font.setPointSize(25)
        self.groupBox.setFont(font)
        self.groupBox.setTitle("")
        self.groupBox.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox.setObjectName("groupBox")
        self.tabWidget = QtWidgets.QTabWidget(self.groupBox)
        self.tabWidget.setGeometry(QtCore.QRect(-10, 50, 1571, 871))
        self.tabWidget.setObjectName("tabWidget")
        self.DataMiningTab = QtWidgets.QWidget()
        self.DataMiningTab.setObjectName("DataMiningTab")
        self.InputBtn = QtWidgets.QPushButton(self.DataMiningTab)
        self.InputBtn.setGeometry(QtCore.QRect(20, 20, 141, 41))
        self.InputBtn.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.InputBtn.setAutoDefault(False)
        self.InputBtn.setObjectName("InputBtn")
        self.DataMiningBtn = QtWidgets.QPushButton(self.DataMiningTab)
        self.DataMiningBtn.setGeometry(QtCore.QRect(170, 20, 181, 41))
        self.DataMiningBtn.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.DataMiningBtn.setObjectName("DataMiningBtn")
        self.DataMiningLabel = QtWidgets.QLabel(self.DataMiningTab)
        self.DataMiningLabel.setGeometry(QtCore.QRect(390, 20, 731, 41))
        self.DataMiningLabel.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.DataMiningLabel.setText("")
        self.DataMiningLabel.setTextFormat(QtCore.Qt.RichText)
        self.DataMiningLabel.setAlignment(QtCore.Qt.AlignJustify
                                          | QtCore.Qt.AlignVCenter)
        self.DataMiningLabel.setObjectName("DataMiningLabel")
        self.gridLayoutWidget = QtWidgets.QWidget(self.DataMiningTab)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(20, 80, 1531, 721))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.DataMiningTableWidget = QtWidgets.QTableWidget(
            self.gridLayoutWidget)
        self.DataMiningTableWidget.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.DataMiningTableWidget.setObjectName("DataMiningTableWidget")
        self.DataMiningTableWidget.setColumnCount(0)
        self.DataMiningTableWidget.setRowCount(0)
        self.gridLayout.addWidget(self.DataMiningTableWidget, 0, 0, 1, 1)
        self.tabWidget.addTab(self.DataMiningTab, "")
        self.DataVisualTab = QtWidgets.QWidget()
        self.DataVisualTab.setObjectName("DataVisualTab")
        self.DataVisualWidget = MatplotlibWidget(self.DataVisualTab)
        self.DataVisualWidget.setGeometry(QtCore.QRect(400, 90, 1131, 600))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.DataVisualWidget.sizePolicy().hasHeightForWidth())
        self.DataVisualWidget.setSizePolicy(sizePolicy)
        self.DataVisualWidget.setObjectName("DataVisualWidget")
        self.DataVisualSplitter = QtWidgets.QSplitter(self.DataVisualTab)
        self.DataVisualSplitter.setGeometry(QtCore.QRect(40, 90, 321, 601))
        self.DataVisualSplitter.setOrientation(QtCore.Qt.Vertical)
        self.DataVisualSplitter.setObjectName("DataVisualSplitter")
        self.xsplitter = QtWidgets.QSplitter(self.DataVisualSplitter)
        self.xsplitter.setOrientation(QtCore.Qt.Horizontal)
        self.xsplitter.setObjectName("xsplitter")
        self.XLabel = QtWidgets.QLabel(self.xsplitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.XLabel.sizePolicy().hasHeightForWidth())
        self.XLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.XLabel.setFont(font)
        self.XLabel.setObjectName("XLabel")
        self.XComboBox = QtWidgets.QComboBox(self.xsplitter)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.XComboBox.setFont(font)
        self.XComboBox.setObjectName("XComboBox")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.XComboBox.addItem("")
        self.ysplitter = QtWidgets.QSplitter(self.DataVisualSplitter)
        self.ysplitter.setOrientation(QtCore.Qt.Horizontal)
        self.ysplitter.setObjectName("ysplitter")
        self.YLabel = QtWidgets.QLabel(self.ysplitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.YLabel.sizePolicy().hasHeightForWidth())
        self.YLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.YLabel.setFont(font)
        self.YLabel.setObjectName("YLabel")
        self.YComboBox = QtWidgets.QComboBox(self.ysplitter)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.YComboBox.setFont(font)
        self.YComboBox.setObjectName("YComboBox")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.YComboBox.addItem("")
        self.DataVisualBtn = QtWidgets.QPushButton(self.DataVisualSplitter)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.DataVisualBtn.setFont(font)
        self.DataVisualBtn.setObjectName("DataVisualBtn")
        self.DataVisualLabel = QtWidgets.QLabel(self.DataVisualSplitter)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.DataVisualLabel.setFont(font)
        self.DataVisualLabel.setObjectName("DataVisualLabel")
        self.HeatMapBtn = QtWidgets.QPushButton(self.DataVisualSplitter)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.HeatMapBtn.setFont(font)
        self.HeatMapBtn.setObjectName("HeatMapBtn")
        self.tabWidget.addTab(self.DataVisualTab, "")
        self.OxygenTab = QtWidgets.QWidget()
        self.OxygenTab.setObjectName("OxygenTab")
        self.OxygenVisualWidget = MatplotlibWidget(self.OxygenTab)
        self.OxygenVisualWidget.setGeometry(QtCore.QRect(120, 60, 600, 480))
        self.OxygenVisualWidget.setObjectName("OxygenVisualWidget")
        self.OxygenVisualBtn = QtWidgets.QPushButton(self.OxygenTab)
        self.OxygenVisualBtn.setGeometry(QtCore.QRect(720, 680, 111, 31))
        self.OxygenVisualBtn.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.OxygenVisualBtn.setObjectName("OxygenVisualBtn")
        self.OxygenVisualValidationWidget = MatplotlibWidget(self.OxygenTab)
        self.OxygenVisualValidationWidget.setGeometry(
            QtCore.QRect(840, 60, 600, 480))
        self.OxygenVisualValidationWidget.setObjectName(
            "OxygenVisualValidationWidget")
        self.OxygenLabel = QtWidgets.QLabel(self.OxygenTab)
        self.OxygenLabel.setGeometry(QtCore.QRect(110, 590, 611, 51))
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.OxygenLabel.setFont(font)
        self.OxygenLabel.setText("")
        self.OxygenLabel.setObjectName("OxygenLabel")
        self.CrossValidationLabel = QtWidgets.QLabel(self.OxygenTab)
        self.CrossValidationLabel.setGeometry(QtCore.QRect(830, 590, 611, 51))
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.CrossValidationLabel.setFont(font)
        self.CrossValidationLabel.setText("")
        self.CrossValidationLabel.setObjectName("CrossValidationLabel")
        self.tabWidget.addTab(self.OxygenTab, "")
        self.EfficiencyTab = QtWidgets.QWidget()
        self.EfficiencyTab.setObjectName("EfficiencyTab")
        self.EfficiencyVisualWidget = MatplotlibWidget(self.EfficiencyTab)
        self.EfficiencyVisualWidget.setGeometry(QtCore.QRect(
            120, 60, 600, 480))
        self.EfficiencyVisualWidget.setObjectName("EfficiencyVisualWidget")
        self.EfficiencyVisualValidationWidget = MatplotlibWidget(
            self.EfficiencyTab)
        self.EfficiencyVisualValidationWidget.setGeometry(
            QtCore.QRect(840, 60, 600, 480))
        self.EfficiencyVisualValidationWidget.setObjectName(
            "EfficiencyVisualValidationWidget")
        self.EfficiencyVisualBtn = QtWidgets.QPushButton(self.EfficiencyTab)
        self.EfficiencyVisualBtn.setGeometry(QtCore.QRect(720, 680, 111, 31))
        self.EfficiencyVisualBtn.setStyleSheet("font: 15pt \"Ubuntu\";")
        self.EfficiencyVisualBtn.setObjectName("EfficiencyVisualBtn")
        self.EfficiencyLabel = QtWidgets.QLabel(self.EfficiencyTab)
        self.EfficiencyLabel.setGeometry(QtCore.QRect(110, 590, 611, 51))
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.EfficiencyLabel.setFont(font)
        self.EfficiencyLabel.setText("")
        self.EfficiencyLabel.setObjectName("EfficiencyLabel")
        self.EfficiencyCrossValidationLabel = QtWidgets.QLabel(
            self.EfficiencyTab)
        self.EfficiencyCrossValidationLabel.setGeometry(
            QtCore.QRect(830, 590, 611, 51))
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.EfficiencyCrossValidationLabel.setFont(font)
        self.EfficiencyCrossValidationLabel.setText("")
        self.EfficiencyCrossValidationLabel.setObjectName(
            "EfficiencyCrossValidationLabel")
        self.tabWidget.addTab(self.EfficiencyTab, "")
        self.EfficiencyImproveTab = QtWidgets.QWidget()
        self.EfficiencyImproveTab.setObjectName("EfficiencyImproveTab")
        self.EfficiencyImproveWidget = MatplotlibWidget(
            self.EfficiencyImproveTab)
        self.EfficiencyImproveWidget.setGeometry(
            QtCore.QRect(120, 70, 600, 480))
        self.EfficiencyImproveWidget.setObjectName("EfficiencyImproveWidget")
        self.gridLayoutWidget_3 = QtWidgets.QWidget(self.EfficiencyImproveTab)
        self.gridLayoutWidget_3.setGeometry(QtCore.QRect(760, 70, 785, 481))
        self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
        self.EfficiencyImproveGridLayout = QtWidgets.QGridLayout(
            self.gridLayoutWidget_3)
        self.EfficiencyImproveGridLayout.setContentsMargins(0, 0, 0, 0)
        self.EfficiencyImproveGridLayout.setObjectName(
            "EfficiencyImproveGridLayout")
        self.xiaolv_after_label = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.xiaolv_after_label.setText("")
        self.xiaolv_after_label.setAlignment(QtCore.Qt.AlignCenter)
        self.xiaolv_after_label.setObjectName("xiaolv_after_label")
        self.EfficiencyImproveGridLayout.addWidget(self.xiaolv_after_label, 4,
                                                   2, 1, 1)
        self.xiaolvlabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.xiaolvlabel.setObjectName("xiaolvlabel")
        self.EfficiencyImproveGridLayout.addWidget(self.xiaolvlabel, 4, 0, 1,
                                                   1)
        self.geimeiliang_after_label = QtWidgets.QLabel(
            self.gridLayoutWidget_3)
        self.geimeiliang_after_label.setText("")
        self.geimeiliang_after_label.setAlignment(QtCore.Qt.AlignCenter)
        self.geimeiliang_after_label.setObjectName("geimeiliang_after_label")
        self.EfficiencyImproveGridLayout.addWidget(
            self.geimeiliang_after_label, 3, 2, 1, 1)
        self.xiaolv_before_label = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.xiaolv_before_label.setText("")
        self.xiaolv_before_label.setAlignment(QtCore.Qt.AlignCenter)
        self.xiaolv_before_label.setObjectName("xiaolv_before_label")
        self.EfficiencyImproveGridLayout.addWidget(self.xiaolv_before_label, 4,
                                                   1, 1, 1)
        self.ercifenglianglabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.ercifenglianglabel.setObjectName("ercifenglianglabel")
        self.EfficiencyImproveGridLayout.addWidget(self.ercifenglianglabel, 2,
                                                   0, 1, 1)
        self.ercifengliang_before_label = QtWidgets.QLabel(
            self.gridLayoutWidget_3)
        self.ercifengliang_before_label.setText("")
        self.ercifengliang_before_label.setAlignment(QtCore.Qt.AlignCenter)
        self.ercifengliang_before_label.setObjectName(
            "ercifengliang_before_label")
        self.EfficiencyImproveGridLayout.addWidget(
            self.ercifengliang_before_label, 2, 1, 1, 1)
        self.youhuaqianlabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.youhuaqianlabel.setAlignment(QtCore.Qt.AlignCenter)
        self.youhuaqianlabel.setObjectName("youhuaqianlabel")
        self.EfficiencyImproveGridLayout.addWidget(self.youhuaqianlabel, 1, 1,
                                                   1, 1)
        self.youhuahoulabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.youhuahoulabel.setAlignment(QtCore.Qt.AlignCenter)
        self.youhuahoulabel.setObjectName("youhuahoulabel")
        self.EfficiencyImproveGridLayout.addWidget(self.youhuahoulabel, 1, 2,
                                                   1, 1)
        self.Advicelabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.Advicelabel.setObjectName("Advicelabel")
        self.EfficiencyImproveGridLayout.addWidget(self.Advicelabel, 0, 1, 1,
                                                   1)
        self.geimeiliang_before_label = QtWidgets.QLabel(
            self.gridLayoutWidget_3)
        self.geimeiliang_before_label.setText("")
        self.geimeiliang_before_label.setAlignment(QtCore.Qt.AlignCenter)
        self.geimeiliang_before_label.setObjectName("geimeiliang_before_label")
        self.EfficiencyImproveGridLayout.addWidget(
            self.geimeiliang_before_label, 3, 1, 1, 1)
        self.ercifengliang_after_label = QtWidgets.QLabel(
            self.gridLayoutWidget_3)
        self.ercifengliang_after_label.setText("")
        self.ercifengliang_after_label.setAlignment(QtCore.Qt.AlignCenter)
        self.ercifengliang_after_label.setObjectName(
            "ercifengliang_after_label")
        self.EfficiencyImproveGridLayout.addWidget(
            self.ercifengliang_after_label, 2, 2, 1, 1)
        self.geimeilianglabel = QtWidgets.QLabel(self.gridLayoutWidget_3)
        self.geimeilianglabel.setObjectName("geimeilianglabel")
        self.EfficiencyImproveGridLayout.addWidget(self.geimeilianglabel, 3, 0,
                                                   1, 1)
        self.EfficiencyImproveBtn = QtWidgets.QPushButton(
            self.EfficiencyImproveTab)
        self.EfficiencyImproveBtn.setGeometry(QtCore.QRect(644, 669, 251, 51))
        self.EfficiencyImproveBtn.setObjectName("EfficiencyImproveBtn")
        self.EfficiencyImproveLabel = QtWidgets.QLabel(
            self.EfficiencyImproveTab)
        self.EfficiencyImproveLabel.setGeometry(QtCore.QRect(
            124, 590, 591, 51))
        self.EfficiencyImproveLabel.setText("")
        self.EfficiencyImproveLabel.setObjectName("EfficiencyImproveLabel")
        self.tabWidget.addTab(self.EfficiencyImproveTab, "")
        self.LogTab = QtWidgets.QWidget()
        self.LogTab.setObjectName("LogTab")
        self.gridLayoutWidget_2 = QtWidgets.QWidget(self.LogTab)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(19, 19, 1201, 781))
        self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.scrollArea = QtWidgets.QScrollArea(self.gridLayoutWidget_2)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents_3 = QtWidgets.QWidget()
        self.scrollAreaWidgetContents_3.setGeometry(
            QtCore.QRect(0, 0, 1193, 777))
        self.scrollAreaWidgetContents_3.setMinimumSize(QtCore.QSize(0, 777))
        self.scrollAreaWidgetContents_3.setObjectName(
            "scrollAreaWidgetContents_3")
        self.LogTextEdit = QtWidgets.QTextEdit(self.scrollAreaWidgetContents_3)
        self.LogTextEdit.setGeometry(QtCore.QRect(-7, -1, 1211, 781))
        self.LogTextEdit.setMinimumSize(QtCore.QSize(0, 777))
        self.LogTextEdit.setObjectName("LogTextEdit")
        self.scrollArea.setWidget(self.scrollAreaWidgetContents_3)
        self.gridLayout_2.addWidget(self.scrollArea, 0, 1, 1, 1)
        self.tabWidget.addTab(self.LogTab, "")

        self.retranslateUi(Form)
        self.tabWidget.setCurrentIndex(1)
        self.OxygenVisualBtn.clicked.connect(Form.OxygenVisualPlot)
        self.DataMiningBtn.clicked.connect(Form.Calculate)
        self.InputBtn.clicked.connect(Form.OpenFile)
        self.DataVisualBtn.clicked.connect(Form.DataVisualPlot)
        self.HeatMapBtn.clicked.connect(Form.HeapMapPlot)
        self.EfficiencyImproveBtn.clicked.connect(Form.EfficiencyImprove)
        self.EfficiencyVisualBtn.clicked.connect(Form.EfficiencyVisualPlot)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "火电关键参数软测量及效率优化系统"))
        Form.setWhatsThis(
            _translate("Form",
                       "<html><head/><body><p><br/></p></body></html>"))
        self.InputBtn.setText(_translate("Form", "导入数据"))
        self.DataMiningBtn.setText(_translate("Form", "数据预处理"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.DataMiningTab),
                                  _translate("Form", "数据预处理"))
        self.XLabel.setText(_translate("Form", "X轴:"))
        self.XComboBox.setItemText(0, _translate("Form", "sample"))
        self.XComboBox.setItemText(1, _translate("Form", "给煤量"))
        self.XComboBox.setItemText(2, _translate("Form", "排烟温度"))
        self.XComboBox.setItemText(3, _translate("Form", "主蒸汽压力"))
        self.XComboBox.setItemText(4, _translate("Form", "炉膛出口烟温度"))
        self.XComboBox.setItemText(5, _translate("Form", "主蒸汽温度"))
        self.XComboBox.setItemText(6, _translate("Form", "机组负荷"))
        self.XComboBox.setItemText(7, _translate("Form", "给水温度"))
        self.XComboBox.setItemText(8, _translate("Form", "给水流量"))
        self.XComboBox.setItemText(9, _translate("Form", "一次风量"))
        self.XComboBox.setItemText(10, _translate("Form", "二次风量"))
        self.XComboBox.setItemText(11, _translate("Form", "二次风温"))
        self.XComboBox.setItemText(12, _translate("Form", "含氧量"))
        self.XComboBox.setItemText(13, _translate("Form", "效率"))
        self.YLabel.setText(_translate("Form", "Y轴:"))
        self.YComboBox.setItemText(0, _translate("Form", "含氧量"))
        self.YComboBox.setItemText(1, _translate("Form", "效率"))
        self.YComboBox.setItemText(2, _translate("Form", "给煤量"))
        self.YComboBox.setItemText(3, _translate("Form", "排烟温度"))
        self.YComboBox.setItemText(4, _translate("Form", "主蒸汽压力"))
        self.YComboBox.setItemText(5, _translate("Form", "炉膛出口烟温度"))
        self.YComboBox.setItemText(6, _translate("Form", "主蒸汽温度"))
        self.YComboBox.setItemText(7, _translate("Form", "机组负荷"))
        self.YComboBox.setItemText(8, _translate("Form", "给水温度"))
        self.YComboBox.setItemText(9, _translate("Form", "给水流量"))
        self.YComboBox.setItemText(10, _translate("Form", "一次风量"))
        self.YComboBox.setItemText(11, _translate("Form", "二次风量"))
        self.YComboBox.setItemText(12, _translate("Form", "二次风温"))
        self.DataVisualBtn.setText(_translate("Form", "画图"))
        self.DataVisualLabel.setText(_translate("Form", "特殊类型图:"))
        self.HeatMapBtn.setText(_translate("Form", "1. HeatMap"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.DataVisualTab),
                                  _translate("Form", "数据可视化"))
        self.OxygenVisualBtn.setText(_translate("Form", "预测"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.OxygenTab),
                                  _translate("Form", "烟气含氧量软测量"))
        self.EfficiencyVisualBtn.setText(_translate("Form", "预测"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.EfficiencyTab),
                                  _translate("Form", "效率软测量"))
        self.xiaolvlabel.setText(_translate("Form", "效率:"))
        self.ercifenglianglabel.setText(_translate("Form", "二次风量:"))
        self.youhuaqianlabel.setText(_translate("Form", "优化前"))
        self.youhuahoulabel.setText(_translate("Form", "优化后"))
        self.Advicelabel.setText(_translate("Form", "控制量优化建议"))
        self.geimeilianglabel.setText(_translate("Form", "给煤量:"))
        self.EfficiencyImproveBtn.setText(_translate("Form", "开始优化"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.EfficiencyImproveTab),
            _translate("Form", "效率优化"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.LogTab),
                                  _translate("Form", "系统日志"))
Esempio n. 14
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(718, 650)
        MainWindow.setAutoFillBackground(False)
        MainWindow.setStyleSheet(
            "QWidget#canshu{border: 2px solid rgba(0,0,0,0.5);\n"
            "border-radius: 10px;}")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.canshu = QtWidgets.QWidget(self.centralwidget)
        self.canshu.setGeometry(QtCore.QRect(10, 20, 691, 171))
        self.canshu.setAutoFillBackground(False)
        self.canshu.setStyleSheet(
            "QWidget#canshu{border: 2px solid rgba(0,0,0,0.5); \n"
            "border-radius: 10px;}")
        self.canshu.setObjectName("canshu")
        self.gridLayout = QtWidgets.QGridLayout(self.canshu)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.pondA_layout = QtWidgets.QGridLayout()
        self.pondA_layout.setObjectName("pondA_layout")
        self.label_2 = QtWidgets.QLabel(self.canshu)
        self.label_2.setMinimumSize(QtCore.QSize(100, 20))
        self.label_2.setMaximumSize(QtCore.QSize(100, 30))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.pondA_layout.addWidget(self.label_2, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.canshu)
        self.label_3.setMinimumSize(QtCore.QSize(10, 10))
        self.label_3.setMaximumSize(QtCore.QSize(100, 20))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(10)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.pondA_layout.addWidget(self.label_3, 1, 0, 1, 1)
        self.pump_rate_A = QtWidgets.QLineEdit(self.canshu)
        self.pump_rate_A.setMinimumSize(QtCore.QSize(100, 20))
        self.pump_rate_A.setMaximumSize(QtCore.QSize(200, 40))
        self.pump_rate_A.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.pump_rate_A.setObjectName("pump_rate_A")
        self.pondA_layout.addWidget(self.pump_rate_A, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.canshu)
        self.label_4.setMaximumSize(QtCore.QSize(100, 20))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(10)
        self.label_4.setFont(font)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.pondA_layout.addWidget(self.label_4, 2, 0, 1, 1)
        self.maxvolume_A = QtWidgets.QLineEdit(self.canshu)
        self.maxvolume_A.setMinimumSize(QtCore.QSize(100, 20))
        self.maxvolume_A.setMaximumSize(QtCore.QSize(200, 16777215))
        self.maxvolume_A.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.maxvolume_A.setCursorMoveStyle(QtCore.Qt.LogicalMoveStyle)
        self.maxvolume_A.setObjectName("maxvolume_A")
        self.pondA_layout.addWidget(self.maxvolume_A, 2, 1, 1, 1)
        self.gridLayout.addLayout(self.pondA_layout, 1, 0, 1, 1)
        self.islinkcheackbox = QtWidgets.QCheckBox(self.canshu)
        self.islinkcheackbox.setObjectName("islinkcheackbox")
        self.gridLayout.addWidget(self.islinkcheackbox, 3, 0, 1, 1)
        self.simulatebtn = QtWidgets.QPushButton(self.canshu)
        self.simulatebtn.setMinimumSize(QtCore.QSize(80, 20))
        self.simulatebtn.setMaximumSize(QtCore.QSize(100, 40))
        self.simulatebtn.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.simulatebtn.setCheckable(False)
        self.simulatebtn.setObjectName("simulatebtn")
        self.gridLayout.addWidget(self.simulatebtn, 3, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.canshu)
        self.label.setMaximumSize(QtCore.QSize(100, 40))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.pondB_layout = QtWidgets.QGridLayout()
        self.pondB_layout.setObjectName("pondB_layout")
        self.label_5 = QtWidgets.QLabel(self.canshu)
        self.label_5.setMinimumSize(QtCore.QSize(100, 20))
        self.label_5.setMaximumSize(QtCore.QSize(100, 30))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(12)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.pondB_layout.addWidget(self.label_5, 0, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.canshu)
        self.label_6.setMinimumSize(QtCore.QSize(10, 10))
        self.label_6.setMaximumSize(QtCore.QSize(100, 20))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(10)
        self.label_6.setFont(font)
        self.label_6.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_6.setObjectName("label_6")
        self.pondB_layout.addWidget(self.label_6, 1, 0, 1, 1)
        self.pump_rate_B = QtWidgets.QLineEdit(self.canshu)
        self.pump_rate_B.setMinimumSize(QtCore.QSize(100, 20))
        self.pump_rate_B.setMaximumSize(QtCore.QSize(200, 40))
        self.pump_rate_B.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.pump_rate_B.setObjectName("pump_rate_B")
        self.pondB_layout.addWidget(self.pump_rate_B, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.canshu)
        self.label_7.setMaximumSize(QtCore.QSize(100, 20))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(10)
        self.label_7.setFont(font)
        self.label_7.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName("label_7")
        self.pondB_layout.addWidget(self.label_7, 2, 0, 1, 1)
        self.maxvolume_B = QtWidgets.QLineEdit(self.canshu)
        self.maxvolume_B.setMinimumSize(QtCore.QSize(100, 20))
        self.maxvolume_B.setMaximumSize(QtCore.QSize(200, 16777215))
        self.maxvolume_B.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.maxvolume_B.setObjectName("maxvolume_B")
        self.pondB_layout.addWidget(self.maxvolume_B, 2, 1, 1, 1)
        self.gridLayout.addLayout(self.pondB_layout, 1, 1, 1, 1)
        self.output_view = QtWidgets.QWidget(self.centralwidget)
        self.output_view.setGeometry(QtCore.QRect(10, 220, 691, 401))
        self.output_view.setObjectName("output_view")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.output_view)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_8 = QtWidgets.QLabel(self.output_view)
        self.label_8.setMinimumSize(QtCore.QSize(100, 20))
        self.label_8.setMaximumSize(QtCore.QSize(100, 40))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_2.addWidget(self.label_8)
        self.stackedWidget = QtWidgets.QStackedWidget(self.output_view)
        self.stackedWidget.setObjectName("stackedWidget")
        self.page_welcome = QtWidgets.QWidget()
        self.page_welcome.setObjectName("page_welcome")
        self.widget = QtWidgets.QWidget(self.page_welcome)
        self.widget.setGeometry(QtCore.QRect(20, 20, 631, 311))
        self.widget.setObjectName("widget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_9 = QtWidgets.QLabel(self.widget)
        self.label_9.setMinimumSize(QtCore.QSize(60, 20))
        self.label_9.setMaximumSize(QtCore.QSize(100, 100))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(10)
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout.addWidget(self.label_9)
        self.run_progress_bar = QtWidgets.QProgressBar(self.widget)
        self.run_progress_bar.setMinimumSize(QtCore.QSize(200, 30))
        self.run_progress_bar.setMaximumSize(QtCore.QSize(1000, 40))
        self.run_progress_bar.setProperty("value", 24)
        self.run_progress_bar.setObjectName("run_progress_bar")
        self.horizontalLayout.addWidget(self.run_progress_bar)
        self.verticalLayout.addLayout(self.horizontalLayout)
        spacerItem = QtWidgets.QSpacerItem(40, 30,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout.addItem(spacerItem)
        self.plainTextEdit = QtWidgets.QPlainTextEdit(self.widget)
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.verticalLayout.addWidget(self.plainTextEdit)
        self.stackedWidget.addWidget(self.page_welcome)
        self.page_result = QtWidgets.QWidget()
        self.page_result.setObjectName("page_result")
        self.draw_selection_box = QtWidgets.QComboBox(self.page_result)
        self.draw_selection_box.setGeometry(QtCore.QRect(21, 11, 150, 20))
        self.draw_selection_box.setMinimumSize(QtCore.QSize(150, 20))
        self.draw_selection_box.setMaximumSize(QtCore.QSize(250, 40))
        self.draw_selection_box.setObjectName("draw_selection_box")
        self.draw_selection_box.addItem("")
        self.draw_selection_box.addItem("")
        self.draw_selection_box.addItem("")
        self.draw_selection_box.addItem("")
        self.draw_selection_box.addItem("")
        self.draw_widget = MatplotlibWidget(self.page_result)
        self.draw_widget.setGeometry(QtCore.QRect(20, 40, 651, 291))
        self.draw_widget.setObjectName("draw_widget")
        self.stackedWidget.addWidget(self.page_result)
        self.page = QtWidgets.QWidget()
        self.page.setObjectName("page")
        self.draw_widget2 = MatplotlibWidget(self.page)
        self.draw_widget2.setGeometry(QtCore.QRect(10, 10, 661, 321))
        self.draw_widget2.setObjectName("draw_widget2")
        self.stackedWidget.addWidget(self.page)
        self.verticalLayout_2.addWidget(self.stackedWidget)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.testbtn1 = QtWidgets.QPushButton(self.output_view)
        self.testbtn1.setObjectName("testbtn1")
        self.horizontalLayout_2.addWidget(self.testbtn1)
        self.testbtn2 = QtWidgets.QPushButton(self.output_view)
        self.testbtn2.setMinimumSize(QtCore.QSize(100, 20))
        self.testbtn2.setObjectName("testbtn2")
        self.horizontalLayout_2.addWidget(self.testbtn2)
        self.testbtn3 = QtWidgets.QPushButton(self.output_view)
        self.testbtn3.setObjectName("testbtn3")
        self.horizontalLayout_2.addWidget(self.testbtn3)
        self.testbtn4 = QtWidgets.QPushButton(self.output_view)
        self.testbtn4.setMinimumSize(QtCore.QSize(120, 20))
        self.testbtn4.setObjectName("testbtn4")
        self.horizontalLayout_2.addWidget(self.testbtn4)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.label.raise_()
        self.label_2.raise_()
        self.label_3.raise_()
        self.label_4.raise_()
        self.label_8.raise_()
        self.label_9.raise_()
        self.label.raise_()
        self.label_2.raise_()
        self.label_3.raise_()
        self.label_4.raise_()
        self.label_2.raise_()
        self.label_3.raise_()
        self.pump_rate_A.raise_()
        self.label_4.raise_()
        self.maxvolume_A.raise_()
        self.islinkcheackbox.raise_()
        self.simulatebtn.raise_()
        self.label_8.raise_()
        self.stackedWidget.raise_()
        self.testbtn1.raise_()
        self.testbtn2.raise_()
        self.testbtn3.raise_()
        self.testbtn4.raise_()
        self.output_view.raise_()
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_2.setText(_translate("MainWindow", "调蓄带A"))
        self.label_3.setText(_translate("MainWindow", "水泵流量"))
        self.pump_rate_A.setPlaceholderText(_translate("MainWindow",
                                                       "单位:m3/s"))
        self.label_4.setText(_translate("MainWindow", "库容"))
        self.maxvolume_A.setPlaceholderText(_translate("MainWindow", "单位:m3"))
        self.islinkcheackbox.setText(_translate("MainWindow", "是否连通"))
        self.simulatebtn.setText(_translate("MainWindow", "运行模拟"))
        self.label.setText(_translate("MainWindow", "参数设置"))
        self.label_5.setText(_translate("MainWindow", "调蓄带B"))
        self.label_6.setText(_translate("MainWindow", "水泵流量"))
        self.pump_rate_B.setPlaceholderText(_translate("MainWindow",
                                                       "单位:m3/s"))
        self.label_7.setText(_translate("MainWindow", "库容"))
        self.maxvolume_B.setPlaceholderText(_translate("MainWindow", "单位:m3"))
        self.label_8.setText(_translate("MainWindow", "计算结果"))
        self.label_9.setText(_translate("MainWindow", "模拟进度"))
        self.plainTextEdit.setPlainText(
            _translate(
                "MainWindow", "程序说明:\n"
                "该程序用于计算调蓄带在不同条件下灌溉排水,超量排水以及水泵运行时间的时间序列并作图显示;结果文件输出按钮用于输出上述时间序列的数据,进行保存。若相关调蓄带参数未进行设置,将采用初始默认值(题目中的设定)或上一次的设置来进行模拟。\n"
                "同时,此窗口还用来显示一些程序运行信息,便于debug."))
        self.draw_selection_box.setItemText(
            0, _translate("MainWindow", "总水量时间序列图"))
        self.draw_selection_box.setItemText(
            1, _translate("MainWindow", "灌溉排水时间序列图"))
        self.draw_selection_box.setItemText(
            2, _translate("MainWindow", "超量排水时间序列图"))
        self.draw_selection_box.setItemText(
            3, _translate("MainWindow", "雨污水汇入时间序列图"))
        self.draw_selection_box.setItemText(
            4, _translate("MainWindow", "水泵运行时间图"))
        self.testbtn1.setText(_translate("MainWindow", "程序模拟状态"))
        self.testbtn2.setText(_translate("MainWindow", "各种时间序列图"))
        self.testbtn3.setText(_translate("MainWindow", "利用效益图"))
        self.testbtn4.setText(_translate("MainWindow", "结果文件输出"))
Esempio n. 15
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1280, 720)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.LoginpushButton = QtWidgets.QPushButton(self.centralwidget)
        self.LoginpushButton.setGeometry(QtCore.QRect(10, 30, 75, 23))
        self.LoginpushButton.setObjectName("LoginpushButton")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(100, 10, 1171, 661))
        self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget.setObjectName("tabWidget")
        self.Commtab = QtWidgets.QWidget()
        self.Commtab.setObjectName("Commtab")
        self.tabWidget.addTab(self.Commtab, "")
        self.UISettab = QtWidgets.QWidget()
        self.UISettab.setObjectName("UISettab")
        self.tabWidget.addTab(self.UISettab, "")
        self.Analysetab = QtWidgets.QWidget()
        self.Analysetab.setObjectName("Analysetab")
        self.paintpushButton = QtWidgets.QPushButton(self.Analysetab)
        self.paintpushButton.setGeometry(QtCore.QRect(30, 40, 75, 23))
        self.paintpushButton.setObjectName("paintpushButton")
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.Analysetab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(
            130, 20, 971, 611))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(
            self.horizontalLayoutWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.tabWidget.addTab(self.Analysetab, "")
        self.pygraphtab = QtWidgets.QWidget()
        self.pygraphtab.setObjectName("pygraphtab")
        self.verticalLayoutWidget = QtWidgets.QWidget(self.pygraphtab)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 10, 1071, 611))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget.addTab(self.pygraphtab, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.widget = MatplotlibWidget(self.tab)
        self.widget.setGeometry(QtCore.QRect(220, 20, 841, 241))
        self.widget.setObjectName("widget")
        self.widget_2 = MatplotlibWidget(self.tab)
        self.widget_2.setGeometry(QtCore.QRect(220, 280, 841, 301))
        self.widget_2.setObjectName("widget_2")
        self.paintBtn_1 = QtWidgets.QPushButton(self.tab)
        self.paintBtn_1.setGeometry(QtCore.QRect(50, 50, 75, 23))
        self.paintBtn_1.setObjectName("paintBtn_1")
        self.paintBtn_2 = QtWidgets.QPushButton(self.tab)
        self.paintBtn_2.setGeometry(QtCore.QRect(60, 310, 75, 23))
        self.paintBtn_2.setObjectName("paintBtn_2")
        self.tabWidget.addTab(self.tab, "")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 23))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(4)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "清瑞医疗血糖分析系统"))
        self.LoginpushButton.setText(_translate("MainWindow", "登录"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Commtab),
                                  _translate("MainWindow", "通信设置"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.UISettab),
                                  _translate("MainWindow", "电压电流设置"))
        self.paintpushButton.setText(_translate("MainWindow", "绘制"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Analysetab),
                                  _translate("MainWindow", "数据分析"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.pygraphtab),
                                  _translate("MainWindow", "绘图"))
        self.paintBtn_1.setText(_translate("MainWindow", "绘制"))
        self.paintBtn_2.setText(_translate("MainWindow", "绘制"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("MainWindow", "Page"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
Esempio n. 16
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1167, 533)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.LoadFileButton = QtWidgets.QPushButton(self.centralWidget)
        self.LoadFileButton.setGeometry(QtCore.QRect(20, 30, 101, 31))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.LoadFileButton.sizePolicy().hasHeightForWidth())
        self.LoadFileButton.setSizePolicy(sizePolicy)
        self.LoadFileButton.setObjectName("LoadFileButton")
        self.ShowDirBrowser = QtWidgets.QTextBrowser(self.centralWidget)
        self.ShowDirBrowser.setGeometry(QtCore.QRect(20, 70, 361, 31))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ShowDirBrowser.sizePolicy().hasHeightForWidth())
        self.ShowDirBrowser.setSizePolicy(sizePolicy)
        self.ShowDirBrowser.setObjectName("ShowDirBrowser")
        self.DisplayButton = QtWidgets.QPushButton(self.centralWidget)
        self.DisplayButton.setGeometry(QtCore.QRect(420, 30, 93, 28))
        self.DisplayButton.setObjectName("DisplayButton")
        self.MatplotlibWidget_1 = MatplotlibWidget(self.centralWidget)
        self.MatplotlibWidget_1.setGeometry(QtCore.QRect(410, 60, 741, 431))
        self.MatplotlibWidget_1.setObjectName("MatplotlibWidget_1")
        self.label = QtWidgets.QLabel(self.centralWidget)
        self.label.setGeometry(QtCore.QRect(20, 130, 111, 31))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.InputSignalsBox = QtWidgets.QLineEdit(self.centralWidget)
        self.InputSignalsBox.setGeometry(QtCore.QRect(20, 170, 361, 31))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.InputSignalsBox.sizePolicy().hasHeightForWidth())
        self.InputSignalsBox.setSizePolicy(sizePolicy)
        self.InputSignalsBox.setObjectName("InputSignalsBox")
        self.listWidget = QtWidgets.QListWidget(self.centralWidget)
        self.listWidget.setGeometry(QtCore.QRect(20, 210, 361, 261))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
        self.listWidget.setSizePolicy(sizePolicy)
        self.listWidget.setObjectName("listWidget")
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1167, 26))
        self.menuBar.setObjectName("menuBar")
        self.menuFile = QtWidgets.QMenu(self.menuBar)
        self.menuFile.setObjectName("menuFile")
        self.menuView = QtWidgets.QMenu(self.menuBar)
        self.menuView.setObjectName("menuView")
        self.menuHelp = QtWidgets.QMenu(self.menuBar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menuBar)
        self.ChangeStyleAction = QtWidgets.QAction(MainWindow)
        self.ChangeStyleAction.setObjectName("ChangeStyleAction")
        self.menuView.addAction(self.ChangeStyleAction)
        self.menuBar.addAction(self.menuFile.menuAction())
        self.menuBar.addAction(self.menuView.menuAction())
        self.menuBar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.LoadFileButton, self.ShowDirBrowser)
        MainWindow.setTabOrder(self.ShowDirBrowser, self.InputSignalsBox)
        MainWindow.setTabOrder(self.InputSignalsBox, self.listWidget)
        MainWindow.setTabOrder(self.listWidget, self.DisplayButton)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.LoadFileButton.setText(_translate("MainWindow", "File Load"))
        self.DisplayButton.setText(_translate("MainWindow", "Display"))
        self.label.setText(_translate("MainWindow", "Input signals"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuView.setTitle(_translate("MainWindow", "View"))
        self.menuHelp.setTitle(_translate("MainWindow", "Help"))
        self.ChangeStyleAction.setText(_translate("MainWindow", "ChangeStyle"))
Esempio n. 17
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1345, 975)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.widget = MatplotlibWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(150, 10, 921, 471))
        self.widget.setObjectName("widget")
        self.widget_2 = MatplotlibWidget(self.centralwidget)
        self.widget_2.setGeometry(QtCore.QRect(150, 500, 921, 411))
        self.widget_2.setObjectName("widget_2")
        self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget.setGeometry(QtCore.QRect(1080, 80, 261, 24))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.layoutWidget.setFont(font)
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_2 = QtWidgets.QLabel(self.layoutWidget)
        self.label_2.setMinimumSize(QtCore.QSize(92, 22))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_4.addWidget(self.label_2)
        self.Channel_Box = QtWidgets.QComboBox(self.layoutWidget)
        self.Channel_Box.setMinimumSize(QtCore.QSize(161, 22))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Channel_Box.setFont(font)
        self.Channel_Box.setObjectName("Channel_Box")
        self.horizontalLayout_4.addWidget(self.Channel_Box)
        self.layoutWidget1 = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget1.setGeometry(QtCore.QRect(1080, 860, 254, 53))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.bt_start = QtWidgets.QPushButton(self.layoutWidget1)
        self.bt_start.setMinimumSize(QtCore.QSize(80, 51))
        self.bt_start.setMaximumSize(QtCore.QSize(80, 51))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.bt_start.setFont(font)
        self.bt_start.setObjectName("bt_start")
        self.horizontalLayout_2.addWidget(self.bt_start)
        self.bt_config = QtWidgets.QPushButton(self.layoutWidget1)
        self.bt_config.setMinimumSize(QtCore.QSize(80, 51))
        self.bt_config.setMaximumSize(QtCore.QSize(80, 51))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.bt_config.setFont(font)
        self.bt_config.setObjectName("bt_config")
        self.horizontalLayout_2.addWidget(self.bt_config)
        self.bt_finish = QtWidgets.QPushButton(self.layoutWidget1)
        self.bt_finish.setMinimumSize(QtCore.QSize(80, 51))
        self.bt_finish.setMaximumSize(QtCore.QSize(80, 51))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.bt_finish.setFont(font)
        self.bt_finish.setObjectName("bt_finish")
        self.horizontalLayout_2.addWidget(self.bt_finish)
        self.layoutWidget2 = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget2.setGeometry(QtCore.QRect(1080, 50, 261, 24))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.layoutWidget2.setFont(font)
        self.layoutWidget2.setObjectName("layoutWidget2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.layoutWidget2)
        self.label.setMinimumSize(QtCore.QSize(92, 22))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label.setFont(font)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.Module_Box = QtWidgets.QComboBox(self.layoutWidget2)
        self.Module_Box.setMinimumSize(QtCore.QSize(161, 22))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Module_Box.setFont(font)
        self.Module_Box.setObjectName("Module_Box")
        self.horizontalLayout.addWidget(self.Module_Box)
        self.layoutWidget3 = QtWidgets.QWidget(self.centralwidget)
        self.layoutWidget3.setGeometry(QtCore.QRect(1080, 10, 259, 33))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.layoutWidget3.setFont(font)
        self.layoutWidget3.setObjectName("layoutWidget3")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.layoutWidget3)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.DevSelectBox = QtWidgets.QComboBox(self.layoutWidget3)
        self.DevSelectBox.setMinimumSize(QtCore.QSize(150, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.DevSelectBox.setFont(font)
        self.DevSelectBox.setObjectName("DevSelectBox")
        self.horizontalLayout_3.addWidget(self.DevSelectBox)
        spacerItem = QtWidgets.QSpacerItem(20, 23, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.bt_connect = QtWidgets.QPushButton(self.layoutWidget3)
        self.bt_connect.setMinimumSize(QtCore.QSize(75, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.bt_connect.setFont(font)
        self.bt_connect.setObjectName("bt_connect")
        self.horizontalLayout_3.addWidget(self.bt_connect)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1345, 23))
        self.menubar.setObjectName("menubar")
        self.menu_F = QtWidgets.QMenu(self.menubar)
        self.menu_F.setObjectName("menu_F")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.OpenRegFile_action = QtWidgets.QAction(MainWindow)
        self.OpenRegFile_action.setObjectName("OpenRegFile_action")
        self.NewRegFile_action = QtWidgets.QAction(MainWindow)
        self.NewRegFile_action.setObjectName("NewRegFile_action")
        self.DelRegFile_action = QtWidgets.QAction(MainWindow)
        self.DelRegFile_action.setObjectName("DelRegFile_action")
        self.menu_F.addAction(self.OpenRegFile_action)
        self.menu_F.addAction(self.NewRegFile_action)
        self.menu_F.addAction(self.DelRegFile_action)
        self.menubar.addAction(self.menu_F.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_2.setText(_translate("MainWindow", "通道数量:"))
        self.bt_start.setText(_translate("MainWindow", "开始"))
        self.bt_config.setText(_translate("MainWindow", "配置"))
        self.bt_finish.setText(_translate("MainWindow", "停止"))
        self.label.setText(_translate("MainWindow", "模式选择:"))
        self.bt_connect.setText(_translate("MainWindow", "连接"))
        self.menu_F.setTitle(_translate("MainWindow", "文件(&F)"))
        self.OpenRegFile_action.setText(_translate("MainWindow", "打开寄存器文件"))
        self.OpenRegFile_action.setShortcut(_translate("MainWindow", "Alt+O"))
        self.NewRegFile_action.setText(_translate("MainWindow", "新建寄存器文件"))
        self.NewRegFile_action.setShortcut(_translate("MainWindow", "Alt+N"))
        self.DelRegFile_action.setText(_translate("MainWindow", "删除寄存器文件"))
Esempio n. 18
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1300, 950)
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(12)
        MainWindow.setFont(font)
        MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.matplotlibwidget_static = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_static.setGeometry(QtCore.QRect(10, 0, 640, 500))
        self.matplotlibwidget_static.setCursor(
            QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.matplotlibwidget_static.setAutoFillBackground(False)
        self.matplotlibwidget_static.setObjectName("matplotlibwidget_static")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(210, 510, 200, 55))
        font = QtGui.QFont()
        font.setFamily("黑体")
        font.setPointSize(10)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.matplotlibwidget_dynamic = MatplotlibWidget(self.centralwidget)
        self.matplotlibwidget_dynamic.setEnabled(True)
        self.matplotlibwidget_dynamic.setGeometry(
            QtCore.QRect(650, 0, 640, 500))
        self.matplotlibwidget_dynamic.setCursor(
            QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.matplotlibwidget_dynamic.setAutoFillBackground(False)
        self.matplotlibwidget_dynamic.setObjectName("matplotlibwidget_dynamic")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(920, 510, 200, 55))
        font = QtGui.QFont()
        font.setFamily("黑体")
        font.setPointSize(10)
        self.pushButton_2.setFont(font)
        self.pushButton_2.setObjectName("pushButton_2")
        self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 590, 731, 281))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tableView = QtWidgets.QTableView(self.verticalLayoutWidget)
        self.tableView.setEnabled(True)
        self.tableView.setObjectName("tableView")
        self.verticalLayout.addWidget(self.tableView)
        self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_3.setGeometry(QtCore.QRect(810, 640, 180, 70))
        self.pushButton_3.setObjectName("pushButton_3")
        self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_4.setGeometry(QtCore.QRect(1060, 640, 180, 70))
        self.pushButton_4.setObjectName("pushButton_4")
        self.pushButton_5 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_5.setGeometry(QtCore.QRect(920, 750, 211, 91))
        self.pushButton_5.setObjectName("pushButton_5")
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1300, 26))
        self.menubar.setObjectName("menubar")
        self.menu = QtWidgets.QMenu(self.menubar)
        self.menu.setGeometry(QtCore.QRect(178, 153, 169, 102))
        self.menu.setObjectName("menu")
        MainWindow.setMenuBar(self.menubar)
        self.actionzairu = QtWidgets.QAction(MainWindow)
        self.actionzairu.setObjectName("actionzairu")
        self.actiontuicu = QtWidgets.QAction(MainWindow)
        self.actiontuicu.setObjectName("actiontuicu")
        self.menu.addAction(self.actionzairu)
        self.menu.addAction(self.actiontuicu)
        self.menubar.addAction(self.menu.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "网络流量异常检测系统"))
        self.pushButton.setText(_translate("MainWindow", "显示网络流量情况"))
        self.pushButton_2.setText(_translate("MainWindow", "显示源端口目的端口比"))
        self.pushButton_3.setText(_translate("MainWindow", "异常单流检查"))
        self.pushButton_4.setText(_translate("MainWindow", "异常流模式检查"))
        self.pushButton_5.setText(_translate("MainWindow", "查看异常情况"))
        self.menu.setTitle(_translate("MainWindow", "开始"))
        self.actionzairu.setText(_translate("MainWindow", "载入网络流文件"))
        self.actiontuicu.setText(_translate("MainWindow", "退出"))
Esempio n. 19
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(1114, 701)
        self.all = QtWidgets.QTextEdit(Form)
        self.all.setGeometry(QtCore.QRect(957, 97, 147, 192))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.all.sizePolicy().hasHeightForWidth())
        self.all.setSizePolicy(sizePolicy)
        self.all.setObjectName("all")
        self.recv = QtWidgets.QTextEdit(Form)
        self.recv.setGeometry(QtCore.QRect(520, 97, 146, 192))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.recv.sizePolicy().hasHeightForWidth())
        self.recv.setSizePolicy(sizePolicy)
        self.recv.setObjectName("recv")
        self.label_9 = QtWidgets.QLabel(Form)
        self.label_9.setGeometry(QtCore.QRect(672, 97, 66, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.send = QtWidgets.QTextEdit(Form)
        self.send.setGeometry(QtCore.QRect(744, 97, 147, 192))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.send.sizePolicy().hasHeightForWidth())
        self.send.setSizePolicy(sizePolicy)
        self.send.setObjectName("send")
        self.label_10 = QtWidgets.QLabel(Form)
        self.label_10.setGeometry(QtCore.QRect(897, 97, 54, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.label_6 = QtWidgets.QLabel(Form)
        self.label_6.setGeometry(QtCore.QRect(10, 97, 60, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.mem = QtWidgets.QTextEdit(Form)
        self.mem.setGeometry(QtCore.QRect(76, 97, 147, 192))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mem.sizePolicy().hasHeightForWidth())
        self.mem.setSizePolicy(sizePolicy)
        self.mem.setObjectName("mem")
        self.label_7 = QtWidgets.QLabel(Form)
        self.label_7.setGeometry(QtCore.QRect(229, 97, 60, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setObjectName("label_7")
        self.cpu = QtWidgets.QTextEdit(Form)
        self.cpu.setGeometry(QtCore.QRect(295, 97, 147, 192))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cpu.sizePolicy().hasHeightForWidth())
        self.cpu.setSizePolicy(sizePolicy)
        self.cpu.setObjectName("cpu")
        self.label_8 = QtWidgets.QLabel(Form)
        self.label_8.setGeometry(QtCore.QRect(448, 97, 66, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName("label_8")
        self.dev = QtWidgets.QLineEdit(Form)
        self.dev.setGeometry(QtCore.QRect(70, 10, 231, 20))
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dev.sizePolicy().hasHeightForWidth())
        self.dev.setSizePolicy(sizePolicy)
        self.dev.setObjectName("dev")
        self.checkdev = QtWidgets.QPushButton(Form)
        self.checkdev.setGeometry(QtCore.QRect(320, 10, 75, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.checkdev.sizePolicy().hasHeightForWidth())
        self.checkdev.setSizePolicy(sizePolicy)
        self.checkdev.setObjectName("checkdev")
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(410, 10, 42, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.label = QtWidgets.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(10, 10, 36, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.apppath = QtWidgets.QLineEdit(Form)
        self.apppath.setGeometry(QtCore.QRect(480, 10, 281, 20))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.apppath.sizePolicy().hasHeightForWidth())
        self.apppath.setSizePolicy(sizePolicy)
        self.apppath.setObjectName("apppath")
        self.label_3 = QtWidgets.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(810, 10, 48, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.comboBox = QtWidgets.QComboBox(Form)
        self.comboBox.setGeometry(QtCore.QRect(900, 10, 71, 20))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.packagename = QtWidgets.QLineEdit(Form)
        self.packagename.setGeometry(QtCore.QRect(70, 50, 231, 20))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.packagename.sizePolicy().hasHeightForWidth())
        self.packagename.setSizePolicy(sizePolicy)
        self.packagename.setObjectName("packagename")
        self.label_4 = QtWidgets.QLabel(Form)
        self.label_4.setGeometry(QtCore.QRect(10, 54, 48, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.getpackage = QtWidgets.QPushButton(Form)
        self.getpackage.setGeometry(QtCore.QRect(321, 54, 75, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.getpackage.sizePolicy().hasHeightForWidth())
        self.getpackage.setSizePolicy(sizePolicy)
        self.getpackage.setObjectName("getpackage")
        self.label_5 = QtWidgets.QLabel(Form)
        self.label_5.setGeometry(QtCore.QRect(402, 54, 72, 16))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.activity = QtWidgets.QLineEdit(Form)
        self.activity.setGeometry(QtCore.QRect(480, 54, 281, 20))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.activity.sizePolicy().hasHeightForWidth())
        self.activity.setSizePolicy(sizePolicy)
        self.activity.setObjectName("activity")
        self.start = QtWidgets.QPushButton(Form)
        self.start.setGeometry(QtCore.QRect(809, 54, 75, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.start.sizePolicy().hasHeightForWidth())
        self.start.setSizePolicy(sizePolicy)
        self.start.setObjectName("start")
        self.end = QtWidgets.QPushButton(Form)
        self.end.setGeometry(QtCore.QRect(900, 54, 75, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.end.sizePolicy().hasHeightForWidth())
        self.end.setSizePolicy(sizePolicy)
        self.end.setObjectName("end")
        self.close = QtWidgets.QPushButton(Form)
        self.close.setGeometry(QtCore.QRect(1010, 10, 75, 23))
        self.close.setObjectName("close")
        self.cleartext = QtWidgets.QPushButton(Form)
        self.cleartext.setGeometry(QtCore.QRect(1010, 54, 75, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cleartext.sizePolicy().hasHeightForWidth())
        self.cleartext.setSizePolicy(sizePolicy)
        self.cleartext.setObjectName("cleartext")
        self.mem_plot = MatplotlibWidget(Form)
        self.mem_plot.setGeometry(QtCore.QRect(70, 300, 1021, 381))
        self.mem_plot.setObjectName("mem_plot")
        self.pushButton = QtWidgets.QPushButton(Form)
        self.pushButton.setGeometry(QtCore.QRect(0, 410, 61, 23))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton.sizePolicy().hasHeightForWidth())
        self.pushButton.setSizePolicy(sizePolicy)
        self.pushButton.setObjectName("pushButton")

        self.retranslateUi(Form)
        self.close.clicked.connect(Form.close)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label_9.setText(_translate("Form", "上传流量(k)"))
        self.label_10.setText(_translate("Form", "总流量(k)"))
        self.label_6.setText(_translate("Form", "mem占用(M)"))
        self.label_7.setText(_translate("Form", "cpu占用(%)"))
        self.label_8.setText(_translate("Form", "下载流量(k)"))
        self.checkdev.setText(_translate("Form", "检查设备"))
        self.label_2.setText(_translate("Form", "app路径"))
        self.label.setText(_translate("Form", "设备号"))
        self.label_3.setText(_translate("Form", "更新时间"))
        self.comboBox.setItemText(0, _translate("Form", "选择时间"))
        self.comboBox.setItemText(1, _translate("Form", "1"))
        self.comboBox.setItemText(2, _translate("Form", "2"))
        self.comboBox.setItemText(3, _translate("Form", "5"))
        self.comboBox.setItemText(4, _translate("Form", "10"))
        self.comboBox.setItemText(5, _translate("Form", "20"))
        self.comboBox.setItemText(6, _translate("Form", "30"))
        self.label_4.setText(_translate("Form", "应用包名"))
        self.getpackage.setText(_translate("Form", "获取"))
        self.label_5.setText(_translate("Form", "应用activity"))
        self.start.setText(_translate("Form", "开始"))
        self.end.setText(_translate("Form", "结束"))
        self.close.setText(_translate("Form", "关闭"))
        self.cleartext.setText(_translate("Form", "清除"))
        self.pushButton.setText(_translate("Form", "图表"))