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