forked from huangxin/ailai
保留三个按钮(启动、停止、急停) 和 显示已投袋数
This commit is contained in:
@ -451,7 +451,11 @@ class Ui_MainWindow(object):
|
|||||||
sizePolicy5 = QSizePolicy(
|
sizePolicy5 = QSizePolicy(
|
||||||
QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding
|
||||||
)
|
)
|
||||||
sizePolicy5.setHorizontalStretch(0)
|
# sizePolicy5 = QSizePolicy(
|
||||||
|
# QSizePolicy.Policy.Expanding, # 水平方向
|
||||||
|
# QSizePolicy.Policy.Expanding, # 垂直方向
|
||||||
|
# )
|
||||||
|
sizePolicy5.setHorizontalStretch(0) # 设置水平扩展
|
||||||
sizePolicy5.setVerticalStretch(0)
|
sizePolicy5.setVerticalStretch(0)
|
||||||
sizePolicy5.setHeightForWidth(
|
sizePolicy5.setHeightForWidth(
|
||||||
self.pushButton_leftmenu_produce.sizePolicy().hasHeightForWidth()
|
self.pushButton_leftmenu_produce.sizePolicy().hasHeightForWidth()
|
||||||
@ -4084,6 +4088,7 @@ class Ui_MainWindow(object):
|
|||||||
self.gridLayout_2.setObjectName("gridLayout_2")
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
self.pushButton_reset = QPushButton(self.frame_21)
|
self.pushButton_reset = QPushButton(self.frame_21)
|
||||||
self.pushButton_reset.setObjectName("pushButton_reset")
|
self.pushButton_reset.setObjectName("pushButton_reset")
|
||||||
|
self.pushButton_reset.setVisible(False) # 8/18 隐藏复位
|
||||||
sizePolicy5.setHeightForWidth(
|
sizePolicy5.setHeightForWidth(
|
||||||
self.pushButton_reset.sizePolicy().hasHeightForWidth()
|
self.pushButton_reset.sizePolicy().hasHeightForWidth()
|
||||||
)
|
)
|
||||||
@ -4157,6 +4162,7 @@ class Ui_MainWindow(object):
|
|||||||
sizePolicy5.setHeightForWidth(
|
sizePolicy5.setHeightForWidth(
|
||||||
self.pushButton_pauseFeed.sizePolicy().hasHeightForWidth()
|
self.pushButton_pauseFeed.sizePolicy().hasHeightForWidth()
|
||||||
)
|
)
|
||||||
|
self.pushButton_pauseFeed.setVisible(False) # 8/18 隐藏暂停
|
||||||
self.pushButton_pauseFeed.setSizePolicy(sizePolicy5)
|
self.pushButton_pauseFeed.setSizePolicy(sizePolicy5)
|
||||||
self.pushButton_pauseFeed.setStyleSheet(
|
self.pushButton_pauseFeed.setStyleSheet(
|
||||||
"*{\n"
|
"*{\n"
|
||||||
@ -4221,6 +4227,8 @@ class Ui_MainWindow(object):
|
|||||||
icon13 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.SystemReboot))
|
icon13 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.SystemReboot))
|
||||||
self.pushButton_clearAlarm.setIcon(icon13)
|
self.pushButton_clearAlarm.setIcon(icon13)
|
||||||
|
|
||||||
|
self.pushButton_clearAlarm.setVisible(False) # 8/18 隐藏 清除警报
|
||||||
|
|
||||||
self.gridLayout_2.addWidget(self.pushButton_clearAlarm, 3, 1, 1, 2)
|
self.gridLayout_2.addWidget(self.pushButton_clearAlarm, 3, 1, 1, 2)
|
||||||
|
|
||||||
self.pushButton_onekeyfeed = QPushButton(self.frame_21)
|
self.pushButton_onekeyfeed = QPushButton(self.frame_21)
|
||||||
@ -4254,7 +4262,9 @@ class Ui_MainWindow(object):
|
|||||||
self.gridLayout_2.setRowStretch(2, 2)
|
self.gridLayout_2.setRowStretch(2, 2)
|
||||||
self.gridLayout_2.setRowStretch(3, 2)
|
self.gridLayout_2.setRowStretch(3, 2)
|
||||||
self.gridLayout_2.setColumnStretch(0, 1)
|
self.gridLayout_2.setColumnStretch(0, 1)
|
||||||
self.gridLayout_2.setColumnStretch(1, 1)
|
# 8/18 第一列不分配空间(将第一列隐藏之后设置, 只保留启动,停止,急停)
|
||||||
|
self.gridLayout_2.setColumnStretch(1, 0)
|
||||||
|
# self.gridLayout_2.setColumnStretch(1, 1)
|
||||||
self.gridLayout_2.setRowMinimumHeight(0, 2)
|
self.gridLayout_2.setRowMinimumHeight(0, 2)
|
||||||
self.gridLayout_2.setRowMinimumHeight(1, 2)
|
self.gridLayout_2.setRowMinimumHeight(1, 2)
|
||||||
self.gridLayout_2.setRowMinimumHeight(2, 2)
|
self.gridLayout_2.setRowMinimumHeight(2, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user