|
@@ -30,14 +30,14 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.under_left_groupbox_layout = QtWidgets.QGridLayout(self.under_left_groupbox)
|
|
|
|
|
|
self.lb_status = QtWidgets.QLabel("(灰色:断开/状态不成立 绿色:闭合/状态成立 红色:禁止)")
|
|
|
- self.under_left_groupbox_layout.addWidget(self.lb_status, 0, 8, 1, 9)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.lb_status, 0, 0, 1, 5)
|
|
|
|
|
|
self.sys_status = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.sys_status.setText("系统状态")
|
|
|
self.sys_status.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status, 1, 0, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status, 1, 0)
|
|
|
|
|
|
# spacerItem1 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
# self.under_left_groupbox_layout.addItem(spacerItem1)
|
|
@@ -47,14 +47,14 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.sys_status_no.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_no.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_no, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_no, 1, 3, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_no, 1, 1)
|
|
|
|
|
|
self.sys_status_high_no = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.sys_status_high_no.setText("待机")
|
|
|
self.sys_status_high_no.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_high_no.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_high_no, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_high_no, 1, 5, 1, 4)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_high_no, 1, 2)
|
|
|
|
|
|
# self.sys_status_high_no = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
# self.sys_status_high_no.setText("高压待机")
|
|
@@ -68,33 +68,33 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.sys_status_chg.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_chg.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_chg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_chg, 1, 9, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_chg, 1, 3)
|
|
|
|
|
|
self.sys_status_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.sys_status_dchg.setText("放电")
|
|
|
self.sys_status_dchg.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_dchg.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_dchg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_dchg, 1, 11, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_dchg, 1, 4)
|
|
|
|
|
|
self.sys_status_stop = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.sys_status_stop.setText("停机")
|
|
|
self.sys_status_stop.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_stop.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_stop, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_stop, 1, 13, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_stop, 1, 5)
|
|
|
|
|
|
self.sys_status_sleep = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.sys_status_sleep.setText("休眠")
|
|
|
self.sys_status_sleep.setAlignment(Qt.AlignCenter)
|
|
|
self.sys_status_sleep.setReadOnly(True)
|
|
|
set_edt_bg(self.sys_status_sleep, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.sys_status_sleep, 1, 15, 1, 2)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.sys_status_sleep, 1, 6)
|
|
|
|
|
|
# self.sys_status_nononono = QtWidgets.QLabel(" ")
|
|
|
# self.under_left_groupbox_layout.addWidget(self.sys_status_nononono, 0, 9, 1, 1)
|
|
|
- spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
- self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
|
+ # spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
+ # self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
|
|
|
|
# self.up_and_down = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
# self.up_and_down.setText("指令")
|
|
@@ -128,7 +128,7 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.do_status.setAlignment(Qt.AlignCenter)
|
|
|
self.do_status.setReadOnly(True)
|
|
|
set_edt_bg(self.do_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_status, 3, 0, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_status, 3, 0)
|
|
|
|
|
|
spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
@@ -138,56 +138,56 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.do_1.setAlignment(Qt.AlignCenter)
|
|
|
self.do_1.setReadOnly(True)
|
|
|
set_edt_bg(self.do_1, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_1, 3, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_1, 3, 1)
|
|
|
|
|
|
self.do_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_2.setText("主负接触器")
|
|
|
self.do_2.setAlignment(Qt.AlignCenter)
|
|
|
self.do_2.setReadOnly(True)
|
|
|
set_edt_bg(self.do_2, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_2, 3, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_2, 3, 2)
|
|
|
|
|
|
self.do_3 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_3.setText("预充接触器")
|
|
|
self.do_3.setAlignment(Qt.AlignCenter)
|
|
|
self.do_3.setReadOnly(True)
|
|
|
set_edt_bg(self.do_3, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_3, 3, 9, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_3, 3, 3)
|
|
|
|
|
|
self.do_4 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_4.setText("中间接触器")
|
|
|
self.do_4.setAlignment(Qt.AlignCenter)
|
|
|
self.do_4.setReadOnly(True)
|
|
|
set_edt_bg(self.do_4, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_4, 3, 12, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_4, 3, 4)
|
|
|
|
|
|
self.do_5 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_5.setText("断路器控制")
|
|
|
self.do_5.setAlignment(Qt.AlignCenter)
|
|
|
self.do_5.setReadOnly(True)
|
|
|
set_edt_bg(self.do_5, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_5, 4, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_5, 4, 1)
|
|
|
|
|
|
self.do_6 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_6.setText("DO6")
|
|
|
self.do_6.setAlignment(Qt.AlignCenter)
|
|
|
self.do_6.setReadOnly(True)
|
|
|
set_edt_bg(self.do_6, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_6, 4, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_6, 4, 2)
|
|
|
|
|
|
self.do_7 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_7.setText("干接点1")
|
|
|
self.do_7.setAlignment(Qt.AlignCenter)
|
|
|
self.do_7.setReadOnly(True)
|
|
|
set_edt_bg(self.do_7, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_7, 4, 9, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_7, 4, 3)
|
|
|
|
|
|
self.do_8 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.do_8.setText("干接点2")
|
|
|
self.do_8.setAlignment(Qt.AlignCenter)
|
|
|
self.do_8.setReadOnly(True)
|
|
|
set_edt_bg(self.do_8, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.do_8, 4, 12, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.do_8, 4, 4)
|
|
|
|
|
|
|
|
|
self.di_status = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
@@ -195,7 +195,7 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.di_status.setAlignment(Qt.AlignCenter)
|
|
|
self.di_status.setReadOnly(True)
|
|
|
set_edt_bg(self.di_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_status, 5, 0, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_status, 5, 0)
|
|
|
|
|
|
spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
@@ -205,56 +205,56 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.di_1.setAlignment(Qt.AlignCenter)
|
|
|
self.di_1.setReadOnly(True)
|
|
|
set_edt_bg(self.di_1, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_1, 5, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_1, 5, 1)
|
|
|
|
|
|
self.di_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_2.setText("DI2")
|
|
|
self.di_2.setAlignment(Qt.AlignCenter)
|
|
|
self.di_2.setReadOnly(True)
|
|
|
set_edt_bg(self.di_2, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_2, 5, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_2, 5, 2)
|
|
|
|
|
|
self.di_3 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_3.setText("DI3")
|
|
|
self.di_3.setAlignment(Qt.AlignCenter)
|
|
|
self.di_3.setReadOnly(True)
|
|
|
set_edt_bg(self.di_3, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_3, 5, 9, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_3, 5, 3)
|
|
|
|
|
|
self.di_4 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_4.setText("DI4")
|
|
|
self.di_4.setAlignment(Qt.AlignCenter)
|
|
|
self.di_4.setReadOnly(True)
|
|
|
set_edt_bg(self.di_4, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_4, 5, 12, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_4, 5, 4)
|
|
|
|
|
|
self.di_5 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_5.setText("DI5")
|
|
|
self.di_5.setAlignment(Qt.AlignCenter)
|
|
|
self.di_5.setReadOnly(True)
|
|
|
set_edt_bg(self.di_5, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_5, 6, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_5, 6, 1)
|
|
|
|
|
|
self.di_6 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_6.setText("DI6")
|
|
|
self.di_6.setAlignment(Qt.AlignCenter)
|
|
|
self.di_6.setReadOnly(True)
|
|
|
set_edt_bg(self.di_6, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_6, 6, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_6, 6, 2)
|
|
|
|
|
|
self.di_7 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_7.setText("DI7")
|
|
|
self.di_7.setAlignment(Qt.AlignCenter)
|
|
|
self.di_7.setReadOnly(True)
|
|
|
set_edt_bg(self.di_7, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_7, 6, 9, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_7, 6, 3)
|
|
|
|
|
|
self.di_8 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.di_8.setText("DI8")
|
|
|
self.di_8.setAlignment(Qt.AlignCenter)
|
|
|
self.di_8.setReadOnly(True)
|
|
|
set_edt_bg(self.di_8, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.di_8, 6, 12, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.di_8, 6, 4)
|
|
|
else:
|
|
|
# self.sys_sleep = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
# self.sys_sleep.setText("休眠")
|
|
@@ -268,7 +268,7 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.mos_status.setAlignment(Qt.AlignCenter)
|
|
|
self.mos_status.setReadOnly(True)
|
|
|
set_edt_bg(self.mos_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.mos_status, 3, 0, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.mos_status, 3, 0)
|
|
|
|
|
|
spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
@@ -278,28 +278,28 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.mos_chg.setAlignment(Qt.AlignCenter)
|
|
|
self.mos_chg.setReadOnly(True)
|
|
|
set_edt_bg(self.mos_chg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.mos_chg, 3, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.mos_chg, 3, 1)
|
|
|
|
|
|
self.mos_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.mos_dchg.setText("放电MOS")
|
|
|
self.mos_dchg.setAlignment(Qt.AlignCenter)
|
|
|
self.mos_dchg.setReadOnly(True)
|
|
|
set_edt_bg(self.mos_dchg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.mos_dchg, 3, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.mos_dchg, 3, 2)
|
|
|
|
|
|
self.mos_pre = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.mos_pre.setText("预充MOS")
|
|
|
self.mos_pre.setAlignment(Qt.AlignCenter)
|
|
|
self.mos_pre.setReadOnly(True)
|
|
|
set_edt_bg(self.mos_pre, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.mos_pre, 3, 9, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.mos_pre, 3, 3)
|
|
|
|
|
|
self.fjd_status = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.fjd_status.setText("干接点状态")
|
|
|
self.fjd_status.setAlignment(Qt.AlignCenter)
|
|
|
self.fjd_status.setReadOnly(True)
|
|
|
set_edt_bg(self.fjd_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.fjd_status, 5, 0, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.fjd_status, 5, 0)
|
|
|
|
|
|
spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
@@ -309,21 +309,21 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.fjd_1.setAlignment(Qt.AlignCenter)
|
|
|
self.fjd_1.setReadOnly(True)
|
|
|
set_edt_bg(self.fjd_1, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.fjd_1, 5, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.fjd_1, 5, 1)
|
|
|
|
|
|
self.fjd_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.fjd_2.setText("干接点2")
|
|
|
self.fjd_2.setAlignment(Qt.AlignCenter)
|
|
|
self.fjd_2.setReadOnly(True)
|
|
|
set_edt_bg(self.fjd_2, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.fjd_2, 5, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.fjd_2, 5, 2)
|
|
|
|
|
|
self.chd_dsg_status = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.chd_dsg_status.setText("标志位")
|
|
|
self.chd_dsg_status.setAlignment(Qt.AlignCenter)
|
|
|
self.chd_dsg_status.setReadOnly(True)
|
|
|
set_edt_bg(self.chd_dsg_status, QColor("#99CC99"))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.chd_dsg_status, 7, 0, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.chd_dsg_status, 7, 0)
|
|
|
|
|
|
spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
self.under_left_groupbox_layout.addItem(spacerItem2)
|
|
@@ -333,14 +333,14 @@ class UnderPage(QtWidgets.QWidget):
|
|
|
self.permit_chg.setAlignment(Qt.AlignCenter)
|
|
|
self.permit_chg.setReadOnly(True)
|
|
|
set_edt_bg(self.permit_chg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.permit_chg, 7, 3, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.permit_chg, 7, 1)
|
|
|
|
|
|
self.permit_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
|
|
|
self.permit_dchg.setText("禁止放电")
|
|
|
self.permit_dchg.setAlignment(Qt.AlignCenter)
|
|
|
self.permit_dchg.setReadOnly(True)
|
|
|
set_edt_bg(self.permit_dchg, QColor(Qt.gray))
|
|
|
- self.under_left_groupbox_layout.addWidget(self.permit_dchg, 7, 6, 1, 3)
|
|
|
+ self.under_left_groupbox_layout.addWidget(self.permit_dchg, 7, 2)
|
|
|
|
|
|
self.under_layout.addWidget(self.under_left_groupbox, 1)
|
|
|
|