代码拉取完成,页面将自动刷新
同步操作将从 Xujiuj/dataVisualWindows 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1179, 781)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayoutWidget_4 = QtWidgets.QWidget(self.centralwidget)
self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(70, 75, 1031, 631))
self.verticalLayoutWidget_4.setObjectName("verticalLayoutWidget_4")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_4)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.light_all = QtWidgets.QHBoxLayout()
self.light_all.setObjectName("light_all")
self.light_4 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.light_4.setObjectName("light_4")
self.light_all.addWidget(self.light_4)
self.light_v = PlotWidget(self.verticalLayoutWidget_4)
self.light_v.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.light_v.setFrameShadow(QtWidgets.QFrame.Raised)
self.light_v.setObjectName("light_v")
self.light_all.addWidget(self.light_v)
self.light_v_propertites_6 = QtWidgets.QVBoxLayout()
self.light_v_propertites_6.setObjectName("light_v_propertites_6")
self.warn_min_6 = QtWidgets.QHBoxLayout()
self.warn_min_6.setObjectName("warn_min_6")
self.warn_min_label_6 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_6.setObjectName("warn_min_label_6")
self.warn_min_6.addWidget(self.warn_min_label_6)
self.light_warn_min_value = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.light_warn_min_value.setMaximum(1024)
self.light_warn_min_value.setProperty("value", 180)
self.light_warn_min_value.setObjectName("light_warn_min_value")
self.warn_min_6.addWidget(self.light_warn_min_value)
self.light_v_propertites_6.addLayout(self.warn_min_6)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_6 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_6.setObjectName("label_6")
self.horizontalLayout_6.addWidget(self.label_6)
self.light_warn_max_value = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.light_warn_max_value.setMaximum(1024)
self.light_warn_max_value.setProperty("value", 240)
self.light_warn_max_value.setObjectName("light_warn_max_value")
self.horizontalLayout_6.addWidget(self.light_warn_max_value)
self.light_v_propertites_6.addLayout(self.horizontalLayout_6)
self.light_v_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.light_v_setting.setObjectName("light_v_setting")
self.light_v_propertites_6.addWidget(self.light_v_setting)
self.light_all.addLayout(self.light_v_propertites_6)
self.light_a = PlotWidget(self.verticalLayoutWidget_4)
self.light_a.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.light_a.setFrameShadow(QtWidgets.QFrame.Raised)
self.light_a.setObjectName("light_a")
self.light_all.addWidget(self.light_a)
self.light_a_propertites_3 = QtWidgets.QVBoxLayout()
self.light_a_propertites_3.setObjectName("light_a_propertites_3")
self.light_v_propertites_7 = QtWidgets.QVBoxLayout()
self.light_v_propertites_7.setObjectName("light_v_propertites_7")
self.warn_min_7 = QtWidgets.QHBoxLayout()
self.warn_min_7.setObjectName("warn_min_7")
self.warn_min_label_7 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_7.setObjectName("warn_min_label_7")
self.warn_min_7.addWidget(self.warn_min_label_7)
self.light_warn_min_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.light_warn_min_value_a.setMaximum(1024)
self.light_warn_min_value_a.setProperty("value", 0)
self.light_warn_min_value_a.setObjectName("light_warn_min_value_a")
self.warn_min_7.addWidget(self.light_warn_min_value_a)
self.light_v_propertites_7.addLayout(self.warn_min_7)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_7 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_7.setObjectName("label_7")
self.horizontalLayout_7.addWidget(self.label_7)
self.light_warn_max_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.light_warn_max_value_a.setMaximum(1024)
self.light_warn_max_value_a.setProperty("value", 10)
self.light_warn_max_value_a.setObjectName("light_warn_max_value_a")
self.horizontalLayout_7.addWidget(self.light_warn_max_value_a)
self.light_v_propertites_7.addLayout(self.horizontalLayout_7)
self.light_a_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.light_a_setting.setObjectName("light_a_setting")
self.light_v_propertites_7.addWidget(self.light_a_setting)
self.light_a_propertites_3.addLayout(self.light_v_propertites_7)
self.light_all.addLayout(self.light_a_propertites_3)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.pushButton = Led(self.verticalLayoutWidget_4)
self.pushButton.setText("")
self.pushButton.setObjectName("pushButton")
self.verticalLayout_2.addWidget(self.pushButton)
self.pushButton_2 = Led(self.verticalLayoutWidget_4)
self.pushButton_2.setText("")
self.pushButton_2.setObjectName("pushButton_2")
self.verticalLayout_2.addWidget(self.pushButton_2)
self.light_all.addLayout(self.verticalLayout_2)
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.label_15 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_15.setObjectName("label_15")
self.verticalLayout_7.addWidget(self.label_15)
self.label_16 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_16.setObjectName("label_16")
self.verticalLayout_7.addWidget(self.label_16)
self.light_all.addLayout(self.verticalLayout_7)
self.light_all.setStretch(0, 2)
self.light_all.setStretch(1, 5)
self.light_all.setStretch(2, 3)
self.light_all.setStretch(3, 5)
self.light_all.setStretch(4, 3)
self.light_all.setStretch(5, 1)
self.light_all.setStretch(6, 1)
self.verticalLayout.addLayout(self.light_all)
self.data_all = QtWidgets.QHBoxLayout()
self.data_all.setObjectName("data_all")
self.data = QtWidgets.QLabel(self.verticalLayoutWidget_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.data.sizePolicy().hasHeightForWidth())
self.data.setSizePolicy(sizePolicy)
self.data.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft)
self.data.setObjectName("data")
self.data_all.addWidget(self.data)
self.data_v = PlotWidget(self.verticalLayoutWidget_4)
self.data_v.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.data_v.setFrameShadow(QtWidgets.QFrame.Raised)
self.data_v.setObjectName("data_v")
self.data_all.addWidget(self.data_v)
self.light_v_propertites = QtWidgets.QVBoxLayout()
self.light_v_propertites.setObjectName("light_v_propertites")
self.warn_min = QtWidgets.QHBoxLayout()
self.warn_min.setObjectName("warn_min")
self.warn_min_label = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label.setObjectName("warn_min_label")
self.warn_min.addWidget(self.warn_min_label)
self.data_warn_min_value = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_min_value.setMaximum(1024)
self.data_warn_min_value.setProperty("value", 180)
self.data_warn_min_value.setObjectName("data_warn_min_value")
self.warn_min.addWidget(self.data_warn_min_value)
self.light_v_propertites.addLayout(self.warn_min)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.data_warn_max_value = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_max_value.setMaximum(1024)
self.data_warn_max_value.setProperty("value", 240)
self.data_warn_max_value.setObjectName("data_warn_max_value")
self.horizontalLayout.addWidget(self.data_warn_max_value)
self.light_v_propertites.addLayout(self.horizontalLayout)
self.data_v_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.data_v_setting.setObjectName("data_v_setting")
self.light_v_propertites.addWidget(self.data_v_setting)
self.data_all.addLayout(self.light_v_propertites)
self.data_a = PlotWidget(self.verticalLayoutWidget_4)
self.data_a.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.data_a.setFrameShadow(QtWidgets.QFrame.Raised)
self.data_a.setObjectName("data_a")
self.data_all.addWidget(self.data_a)
self.light_a_propertites = QtWidgets.QVBoxLayout()
self.light_a_propertites.setObjectName("light_a_propertites")
self.light_v_propertites_3 = QtWidgets.QVBoxLayout()
self.light_v_propertites_3.setObjectName("light_v_propertites_3")
self.warn_min_3 = QtWidgets.QHBoxLayout()
self.warn_min_3.setObjectName("warn_min_3")
self.warn_min_label_3 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_3.setObjectName("warn_min_label_3")
self.warn_min_3.addWidget(self.warn_min_label_3)
self.data_warn_min_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_min_value_a.setMaximum(1024)
self.data_warn_min_value_a.setProperty("value", 0)
self.data_warn_min_value_a.setObjectName("data_warn_min_value_a")
self.warn_min_3.addWidget(self.data_warn_min_value_a)
self.light_v_propertites_3.addLayout(self.warn_min_3)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_3 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_3.setObjectName("label_3")
self.horizontalLayout_3.addWidget(self.label_3)
self.data_warn_max_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_max_value_a.setMaximum(1024)
self.data_warn_max_value_a.setProperty("value", 10)
self.data_warn_max_value_a.setObjectName("data_warn_max_value_a")
self.horizontalLayout_3.addWidget(self.data_warn_max_value_a)
self.light_v_propertites_3.addLayout(self.horizontalLayout_3)
self.data_a_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.data_a_setting.setObjectName("data_a_setting")
self.light_v_propertites_3.addWidget(self.data_a_setting)
self.light_a_propertites.addLayout(self.light_v_propertites_3)
self.data_all.addLayout(self.light_a_propertites)
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.pushButton_3 = Led(self.verticalLayoutWidget_4)
self.pushButton_3.setText("")
self.pushButton_3.setObjectName("pushButton_3")
self.verticalLayout_3.addWidget(self.pushButton_3)
self.pushButton_4 = Led(self.verticalLayoutWidget_4)
self.pushButton_4.setText("")
self.pushButton_4.setObjectName("pushButton_4")
self.verticalLayout_3.addWidget(self.pushButton_4)
self.data_all.addLayout(self.verticalLayout_3)
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.label_12 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_12.setObjectName("label_12")
self.verticalLayout_4.addWidget(self.label_12)
self.label_14 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_14.setObjectName("label_14")
self.verticalLayout_4.addWidget(self.label_14)
self.data_all.addLayout(self.verticalLayout_4)
self.data_all.setStretch(0, 2)
self.data_all.setStretch(1, 5)
self.data_all.setStretch(2, 3)
self.data_all.setStretch(3, 5)
self.data_all.setStretch(4, 3)
self.data_all.setStretch(5, 1)
self.data_all.setStretch(6, 1)
self.verticalLayout.addLayout(self.data_all)
self.light_all_6 = QtWidgets.QHBoxLayout()
self.light_all_6.setObjectName("light_all_6")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.light_all_6.addItem(spacerItem)
self.data_bit = PlotWidget(self.verticalLayoutWidget_4)
self.data_bit.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.data_bit.setFrameShadow(QtWidgets.QFrame.Raised)
self.data_bit.setObjectName("data_bit")
self.light_all_6.addWidget(self.data_bit)
self.light_v_propertites_5 = QtWidgets.QVBoxLayout()
self.light_v_propertites_5.setObjectName("light_v_propertites_5")
self.warn_min_5 = QtWidgets.QHBoxLayout()
self.warn_min_5.setObjectName("warn_min_5")
self.warn_min_label_5 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_5.setObjectName("warn_min_label_5")
self.warn_min_5.addWidget(self.warn_min_label_5)
self.data_warn_min_value_a_3 = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_min_value_a_3.setMaximum(1024)
self.data_warn_min_value_a_3.setProperty("value", 0)
self.data_warn_min_value_a_3.setObjectName("data_warn_min_value_a_3")
self.warn_min_5.addWidget(self.data_warn_min_value_a_3)
self.light_v_propertites_5.addLayout(self.warn_min_5)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_5 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_5.setObjectName("label_5")
self.horizontalLayout_5.addWidget(self.label_5)
self.data_warn_max_value_a_3 = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.data_warn_max_value_a_3.setMaximum(1024)
self.data_warn_max_value_a_3.setProperty("value", 10)
self.data_warn_max_value_a_3.setObjectName("data_warn_max_value_a_3")
self.horizontalLayout_5.addWidget(self.data_warn_max_value_a_3)
self.light_v_propertites_5.addLayout(self.horizontalLayout_5)
self.data_a_setting_3 = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.data_a_setting_3.setObjectName("data_a_setting_3")
self.light_v_propertites_5.addWidget(self.data_a_setting_3)
self.light_all_6.addLayout(self.light_v_propertites_5)
self.verticalLayout_8 = QtWidgets.QVBoxLayout()
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
self.pushButton_10 = Led(self.verticalLayoutWidget_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth())
self.pushButton_10.setSizePolicy(sizePolicy)
self.pushButton_10.setText("")
self.pushButton_10.setObjectName("pushButton_10")
self.horizontalLayout_12.addWidget(self.pushButton_10)
self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_2.setObjectName("label_2")
self.horizontalLayout_12.addWidget(self.label_2, 0, QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter)
self.verticalLayout_8.addLayout(self.horizontalLayout_12)
self.light_all_6.addLayout(self.verticalLayout_8)
self.light_all_6.setStretch(0, 2)
self.light_all_6.setStretch(1, 13)
self.light_all_6.setStretch(2, 3)
self.light_all_6.setStretch(3, 2)
self.verticalLayout.addLayout(self.light_all_6)
self.control_all = QtWidgets.QHBoxLayout()
self.control_all.setObjectName("control_all")
self.control = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.control.setObjectName("control")
self.control_all.addWidget(self.control)
self.control_v = PlotWidget(self.verticalLayoutWidget_4)
self.control_v.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.control_v.setFrameShadow(QtWidgets.QFrame.Raised)
self.control_v.setObjectName("control_v")
self.control_all.addWidget(self.control_v)
self.light_v_propertites_8 = QtWidgets.QVBoxLayout()
self.light_v_propertites_8.setObjectName("light_v_propertites_8")
self.warn_min_8 = QtWidgets.QHBoxLayout()
self.warn_min_8.setObjectName("warn_min_8")
self.warn_min_label_8 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_8.setObjectName("warn_min_label_8")
self.warn_min_8.addWidget(self.warn_min_label_8)
self.control_warn_min_value_v = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.control_warn_min_value_v.setMaximum(1024)
self.control_warn_min_value_v.setProperty("value", 180)
self.control_warn_min_value_v.setObjectName("control_warn_min_value_v")
self.warn_min_8.addWidget(self.control_warn_min_value_v)
self.light_v_propertites_8.addLayout(self.warn_min_8)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_8.setObjectName("label_8")
self.horizontalLayout_8.addWidget(self.label_8)
self.control_warn_max_value_v = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.control_warn_max_value_v.setMaximum(1024)
self.control_warn_max_value_v.setProperty("value", 240)
self.control_warn_max_value_v.setObjectName("control_warn_max_value_v")
self.horizontalLayout_8.addWidget(self.control_warn_max_value_v)
self.light_v_propertites_8.addLayout(self.horizontalLayout_8)
self.control_v_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.control_v_setting.setObjectName("control_v_setting")
self.light_v_propertites_8.addWidget(self.control_v_setting)
self.control_all.addLayout(self.light_v_propertites_8)
self.control_a = PlotWidget(self.verticalLayoutWidget_4)
self.control_a.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.control_a.setFrameShadow(QtWidgets.QFrame.Raised)
self.control_a.setObjectName("control_a")
self.control_all.addWidget(self.control_a)
self.light_a_propertites_4 = QtWidgets.QVBoxLayout()
self.light_a_propertites_4.setObjectName("light_a_propertites_4")
self.light_v_propertites_9 = QtWidgets.QVBoxLayout()
self.light_v_propertites_9.setObjectName("light_v_propertites_9")
self.warn_min_9 = QtWidgets.QHBoxLayout()
self.warn_min_9.setObjectName("warn_min_9")
self.warn_min_label_9 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_9.setObjectName("warn_min_label_9")
self.warn_min_9.addWidget(self.warn_min_label_9)
self.control_warn_min_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.control_warn_min_value_a.setMaximum(1024)
self.control_warn_min_value_a.setProperty("value", 0)
self.control_warn_min_value_a.setObjectName("control_warn_min_value_a")
self.warn_min_9.addWidget(self.control_warn_min_value_a)
self.light_v_propertites_9.addLayout(self.warn_min_9)
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.label_9 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_9.setObjectName("label_9")
self.horizontalLayout_9.addWidget(self.label_9)
self.control_warn_max_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.control_warn_max_value_a.setMaximum(1024)
self.control_warn_max_value_a.setProperty("value", 10)
self.control_warn_max_value_a.setObjectName("control_warn_max_value_a")
self.horizontalLayout_9.addWidget(self.control_warn_max_value_a)
self.light_v_propertites_9.addLayout(self.horizontalLayout_9)
self.control_a_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.control_a_setting.setObjectName("control_a_setting")
self.light_v_propertites_9.addWidget(self.control_a_setting)
self.light_a_propertites_4.addLayout(self.light_v_propertites_9)
self.control_all.addLayout(self.light_a_propertites_4)
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.pushButton_5 = Led(self.verticalLayoutWidget_4)
self.pushButton_5.setText("")
self.pushButton_5.setObjectName("pushButton_5")
self.verticalLayout_5.addWidget(self.pushButton_5)
self.pushButton_6 = Led(self.verticalLayoutWidget_4)
self.pushButton_6.setText("")
self.pushButton_6.setObjectName("pushButton_6")
self.verticalLayout_5.addWidget(self.pushButton_6)
self.control_all.addLayout(self.verticalLayout_5)
self.verticalLayout_9 = QtWidgets.QVBoxLayout()
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.label_17 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_17.setObjectName("label_17")
self.verticalLayout_9.addWidget(self.label_17)
self.label_18 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_18.setObjectName("label_18")
self.verticalLayout_9.addWidget(self.label_18)
self.control_all.addLayout(self.verticalLayout_9)
self.control_all.setStretch(0, 2)
self.control_all.setStretch(1, 5)
self.control_all.setStretch(2, 3)
self.control_all.setStretch(3, 5)
self.control_all.setStretch(4, 3)
self.control_all.setStretch(5, 1)
self.control_all.setStretch(6, 1)
self.verticalLayout.addLayout(self.control_all)
self.led_all = QtWidgets.QHBoxLayout()
self.led_all.setObjectName("led_all")
self.led = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.led.setObjectName("led")
self.led_all.addWidget(self.led)
self.ledt_v = PlotWidget(self.verticalLayoutWidget_4)
self.ledt_v.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.ledt_v.setFrameShadow(QtWidgets.QFrame.Raised)
self.ledt_v.setObjectName("ledt_v")
self.led_all.addWidget(self.ledt_v)
self.light_v_propertites_10 = QtWidgets.QVBoxLayout()
self.light_v_propertites_10.setObjectName("light_v_propertites_10")
self.warn_min_10 = QtWidgets.QHBoxLayout()
self.warn_min_10.setObjectName("warn_min_10")
self.warn_min_label_10 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_10.setObjectName("warn_min_label_10")
self.warn_min_10.addWidget(self.warn_min_label_10)
self.led_warn_min_value_v = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.led_warn_min_value_v.setMaximum(1024)
self.led_warn_min_value_v.setProperty("value", 180)
self.led_warn_min_value_v.setObjectName("led_warn_min_value_v")
self.warn_min_10.addWidget(self.led_warn_min_value_v)
self.light_v_propertites_10.addLayout(self.warn_min_10)
self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.label_10 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_10.setObjectName("label_10")
self.horizontalLayout_10.addWidget(self.label_10)
self.led_warn_max_value = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.led_warn_max_value.setMaximum(1024)
self.led_warn_max_value.setProperty("value", 240)
self.led_warn_max_value.setObjectName("led_warn_max_value")
self.horizontalLayout_10.addWidget(self.led_warn_max_value)
self.light_v_propertites_10.addLayout(self.horizontalLayout_10)
self.led_v_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.led_v_setting.setObjectName("led_v_setting")
self.light_v_propertites_10.addWidget(self.led_v_setting)
self.led_all.addLayout(self.light_v_propertites_10)
self.led_a = PlotWidget(self.verticalLayoutWidget_4)
self.led_a.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.led_a.setFrameShadow(QtWidgets.QFrame.Raised)
self.led_a.setObjectName("led_a")
self.led_all.addWidget(self.led_a)
self.light_a_propertites_5 = QtWidgets.QVBoxLayout()
self.light_a_propertites_5.setObjectName("light_a_propertites_5")
self.light_v_propertites_11 = QtWidgets.QVBoxLayout()
self.light_v_propertites_11.setObjectName("light_v_propertites_11")
self.warn_min_11 = QtWidgets.QHBoxLayout()
self.warn_min_11.setObjectName("warn_min_11")
self.warn_min_label_11 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.warn_min_label_11.setObjectName("warn_min_label_11")
self.warn_min_11.addWidget(self.warn_min_label_11)
self.led_warn_min_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.led_warn_min_value_a.setMaximum(1024)
self.led_warn_min_value_a.setProperty("value", 0)
self.led_warn_min_value_a.setObjectName("led_warn_min_value_a")
self.warn_min_11.addWidget(self.led_warn_min_value_a)
self.light_v_propertites_11.addLayout(self.warn_min_11)
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.label_11 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_11.setObjectName("label_11")
self.horizontalLayout_11.addWidget(self.label_11)
self.led_warn_max_value_a = QtWidgets.QSpinBox(self.verticalLayoutWidget_4)
self.led_warn_max_value_a.setMaximum(1024)
self.led_warn_max_value_a.setProperty("value", 10)
self.led_warn_max_value_a.setObjectName("led_warn_max_value_a")
self.horizontalLayout_11.addWidget(self.led_warn_max_value_a)
self.light_v_propertites_11.addLayout(self.horizontalLayout_11)
self.led_a_setting = QtWidgets.QPushButton(self.verticalLayoutWidget_4)
self.led_a_setting.setObjectName("led_a_setting")
self.light_v_propertites_11.addWidget(self.led_a_setting)
self.light_a_propertites_5.addLayout(self.light_v_propertites_11)
self.led_all.addLayout(self.light_a_propertites_5)
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.pushButton_7 = Led(self.verticalLayoutWidget_4)
self.pushButton_7.setText("")
self.pushButton_7.setObjectName("pushButton_7")
self.verticalLayout_6.addWidget(self.pushButton_7)
self.pushButton_8 = Led(self.verticalLayoutWidget_4)
self.pushButton_8.setText("")
self.pushButton_8.setObjectName("pushButton_8")
self.verticalLayout_6.addWidget(self.pushButton_8)
self.led_all.addLayout(self.verticalLayout_6)
self.verticalLayout_10 = QtWidgets.QVBoxLayout()
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.label_19 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_19.setObjectName("label_19")
self.verticalLayout_10.addWidget(self.label_19)
self.label_20 = QtWidgets.QLabel(self.verticalLayoutWidget_4)
self.label_20.setObjectName("label_20")
self.verticalLayout_10.addWidget(self.label_20)
self.led_all.addLayout(self.verticalLayout_10)
self.led_all.setStretch(0, 2)
self.led_all.setStretch(1, 5)
self.led_all.setStretch(2, 3)
self.led_all.setStretch(3, 5)
self.led_all.setStretch(4, 3)
self.led_all.setStretch(5, 1)
self.led_all.setStretch(6, 1)
self.verticalLayout.addLayout(self.led_all)
self.label_13 = QtWidgets.QLabel(self.centralwidget)
self.label_13.setGeometry(QtCore.QRect(1000, 40, 101, 31))
self.label_13.setObjectName("label_13")
self.line = QtWidgets.QFrame(self.centralwidget)
self.line.setGeometry(QtCore.QRect(60, 70, 1041, 20))
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.line_2 = QtWidgets.QFrame(self.centralwidget)
self.line_2.setGeometry(QtCore.QRect(50, 80, 20, 631))
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.line_3 = QtWidgets.QFrame(self.centralwidget)
self.line_3.setGeometry(QtCore.QRect(60, 700, 1041, 20))
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.line_4 = QtWidgets.QFrame(self.centralwidget)
self.line_4.setGeometry(QtCore.QRect(1090, 80, 20, 631))
self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_4.setObjectName("line_4")
self.line_5 = QtWidgets.QFrame(self.centralwidget)
self.line_5.setGeometry(QtCore.QRect(60, 190, 1041, 16))
self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_5.setObjectName("line_5")
self.line_6 = QtWidgets.QFrame(self.centralwidget)
self.line_6.setGeometry(QtCore.QRect(60, 450, 1041, 16))
self.line_6.setFrameShape(QtWidgets.QFrame.HLine)
self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_6.setObjectName("line_6")
self.line_7 = QtWidgets.QFrame(self.centralwidget)
self.line_7.setGeometry(QtCore.QRect(400, 80, 51, 241))
self.line_7.setFrameShape(QtWidgets.QFrame.VLine)
self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_7.setObjectName("line_7")
self.line_9 = QtWidgets.QFrame(self.centralwidget)
self.line_9.setGeometry(QtCore.QRect(810, 80, 51, 631))
self.line_9.setFrameShape(QtWidgets.QFrame.VLine)
self.line_9.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_9.setObjectName("line_9")
self.line_10 = QtWidgets.QFrame(self.centralwidget)
self.line_10.setGeometry(QtCore.QRect(980, 80, 21, 631))
self.line_10.setFrameShape(QtWidgets.QFrame.VLine)
self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_10.setObjectName("line_10")
self.line_11 = QtWidgets.QFrame(self.centralwidget)
self.line_11.setGeometry(QtCore.QRect(420, 309, 161, 21))
self.line_11.setFrameShape(QtWidgets.QFrame.HLine)
self.line_11.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_11.setObjectName("line_11")
self.line_12 = QtWidgets.QFrame(self.centralwidget)
self.line_12.setGeometry(QtCore.QRect(830, 310, 271, 21))
self.line_12.setFrameShape(QtWidgets.QFrame.HLine)
self.line_12.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_12.setObjectName("line_12")
self.line_13 = QtWidgets.QFrame(self.centralwidget)
self.line_13.setGeometry(QtCore.QRect(57, 569, 1041, 31))
self.line_13.setFrameShape(QtWidgets.QFrame.HLine)
self.line_13.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_13.setObjectName("line_13")
self.line_14 = QtWidgets.QFrame(self.centralwidget)
self.line_14.setGeometry(QtCore.QRect(400, 460, 51, 251))
self.line_14.setFrameShape(QtWidgets.QFrame.VLine)
self.line_14.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_14.setObjectName("line_14")
self.line_15 = QtWidgets.QFrame(self.centralwidget)
self.line_15.setGeometry(QtCore.QRect(550, 460, 61, 251))
self.line_15.setFrameShape(QtWidgets.QFrame.VLine)
self.line_15.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_15.setObjectName("line_15")
self.line_8 = QtWidgets.QFrame(self.centralwidget)
self.line_8.setGeometry(QtCore.QRect(570, 80, 20, 241))
self.line_8.setFrameShape(QtWidgets.QFrame.VLine)
self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_8.setObjectName("line_8")
MainWindow.setCentralWidget(self.centralwidget)
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.light_4.setText(_translate("MainWindow", "灯"))
self.warn_min_label_6.setText(_translate("MainWindow", "预警最小值"))
self.label_6.setText(_translate("MainWindow", "预警最大值"))
self.light_v_setting.setText(_translate("MainWindow", "设置"))
self.warn_min_label_7.setText(_translate("MainWindow", "预警最小值"))
self.label_7.setText(_translate("MainWindow", "预警最大值"))
self.light_a_setting.setText(_translate("MainWindow", "设置"))
self.label_15.setText(_translate("MainWindow", "电压"))
self.label_16.setText(_translate("MainWindow", "电流"))
self.data.setText(_translate("MainWindow", "数据流"))
self.warn_min_label.setText(_translate("MainWindow", "预警最小值"))
self.label.setText(_translate("MainWindow", "预警最大值"))
self.data_v_setting.setText(_translate("MainWindow", "设置"))
self.warn_min_label_3.setText(_translate("MainWindow", "预警最小值"))
self.label_3.setText(_translate("MainWindow", "预警最大值"))
self.data_a_setting.setText(_translate("MainWindow", "设置"))
self.label_12.setText(_translate("MainWindow", "电压"))
self.label_14.setText(_translate("MainWindow", "电流"))
self.warn_min_label_5.setText(_translate("MainWindow", "预警最小值"))
self.label_5.setText(_translate("MainWindow", "预警最大值"))
self.data_a_setting_3.setText(_translate("MainWindow", "设置"))
self.label_2.setText(_translate("MainWindow", "数据\n"
" 位"))
self.control.setText(_translate("MainWindow", "微控制器"))
self.warn_min_label_8.setText(_translate("MainWindow", "预警最小值"))
self.label_8.setText(_translate("MainWindow", "预警最大值"))
self.control_v_setting.setText(_translate("MainWindow", "设置"))
self.warn_min_label_9.setText(_translate("MainWindow", "预警最小值"))
self.label_9.setText(_translate("MainWindow", "预警最大值"))
self.control_a_setting.setText(_translate("MainWindow", "设置"))
self.label_17.setText(_translate("MainWindow", "电压"))
self.label_18.setText(_translate("MainWindow", "电流"))
self.led.setText(_translate("MainWindow", "光传感器"))
self.warn_min_label_10.setText(_translate("MainWindow", "预警最小值"))
self.label_10.setText(_translate("MainWindow", "预警最大值"))
self.led_v_setting.setText(_translate("MainWindow", "设置"))
self.warn_min_label_11.setText(_translate("MainWindow", "预警最小值"))
self.label_11.setText(_translate("MainWindow", "预警最大值"))
self.led_a_setting.setText(_translate("MainWindow", "设置"))
self.label_19.setText(_translate("MainWindow", "电压"))
self.label_20.setText(_translate("MainWindow", "电流"))
self.label_13.setText(_translate("MainWindow", "警报"))
from pyqt_led import Led
from pyqtgraph import PlotWidget
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。