bgg35-50
This commit is contained in:
@ -628,7 +628,34 @@ class Ui_MainWindow(object):
|
||||
"border-image: None;")
|
||||
self.frame_sign_2.setFrameShape(QFrame.Shape.StyledPanel)
|
||||
self.frame_sign_2.setFrameShadow(QFrame.Shadow.Raised)
|
||||
self.gridLayout_4 = QGridLayout(self.frame_sign_2)
|
||||
|
||||
|
||||
# 9/30 新增显示 投料的重量的信息
|
||||
self.verticalLayout_sign = QVBoxLayout(self.frame_sign_2)
|
||||
self.verticalLayout_sign.setObjectName(u"verticalLayout_sign")
|
||||
self.verticalLayout_sign.setContentsMargins(0, 0, 0, 0) # 清除边距
|
||||
self.verticalLayout_sign.setSpacing(5) # 新标签与下方网格布局的间距
|
||||
|
||||
# 1. 添加新的信息标签(放在上方)
|
||||
self.weight_label_info = QLabel(self.frame_sign_2)
|
||||
self.weight_label_info.setObjectName(u"label_info")
|
||||
# 设置标签样式 background-color: #2c2c2c;
|
||||
self.weight_label_info.setStyleSheet(u"""
|
||||
QLabel {
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
color: red;
|
||||
font: 30pt "Microsoft YaHei UI";
|
||||
border-radius: 3px;
|
||||
}
|
||||
""")
|
||||
self.weight_label_info.setText("未选择码垛重量") # 初始信息
|
||||
# self.weight_label_info.setAlignment(Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignVCenter)
|
||||
self.weight_label_info.setAlignment(Qt.AlignmentFlag.AlignCenter) # 居中
|
||||
self.verticalLayout_sign.addWidget(self.weight_label_info)
|
||||
|
||||
# 9/10
|
||||
# self.gridLayout_4 = QGridLayout(self.frame_sign_2)
|
||||
self.gridLayout_4 = QGridLayout()
|
||||
self.gridLayout_4.setObjectName(u"gridLayout_4")
|
||||
self.pushButton_sign_go = QPushButton(self.frame_sign_2)
|
||||
self.pushButton_sign_go.setObjectName(u"pushButton_sign_go")
|
||||
@ -786,6 +813,8 @@ class Ui_MainWindow(object):
|
||||
|
||||
self.gridLayout_4.addWidget(self.label_sign_feed, 0, 7, 1, 1)
|
||||
|
||||
# 9/10 添加 取料中、拍照中等布局
|
||||
self.verticalLayout_sign.addLayout(self.gridLayout_4)
|
||||
|
||||
self.verticalLayout_14.addWidget(self.frame_sign_2)
|
||||
|
||||
@ -3307,8 +3336,50 @@ class Ui_MainWindow(object):
|
||||
" padding: 4px 4px 4px 4px;\n"
|
||||
" outline: none;\n"
|
||||
"}")
|
||||
|
||||
self.comboBox_lineIndex.setVisible(False)
|
||||
self.verticalLayout_11.addWidget(self.comboBox_lineIndex)
|
||||
# 9/29 新增重量选择框 和 选择投料重量提示
|
||||
weight_h_layout = QHBoxLayout()
|
||||
# weight_h_layout.setSpacing(10)
|
||||
# self.weight_label = QLabel(self.frame_20)
|
||||
# self.weight_label.setText("选择料袋重量:")
|
||||
# self.weight_label.setStyleSheet("color: white;")
|
||||
# weight_h_layout.addWidget(self.weight_label)
|
||||
|
||||
self.comboBox_dropWeight = QComboBox(self.frame_20)
|
||||
self.comboBox_dropWeight.setObjectName(u"comboBox_dropWeight")
|
||||
self.comboBox_dropWeight.setStyleSheet(u"QComboBox {\n"
|
||||
" border-radius: 10px;\n"
|
||||
" font-size: 30px;\n"
|
||||
" margin: 0px 10px;\n"
|
||||
" padding: 5px 5px 5px 5px;\n"
|
||||
" background-color: #2c2c2c;\n"
|
||||
" color: white;\n"
|
||||
" border: 1px solid #474747;\n"
|
||||
" min-width: 80px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"QComboBox::drop-down {\n"
|
||||
" width: 0px;\n"
|
||||
" border: none;\n"
|
||||
"\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QComboBox::down-arrow {\n"
|
||||
" image: none;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QComboBox QAbstractItemView {\n"
|
||||
" border-bottom-right-radius: 10px;\n"
|
||||
" border-bottom-left-radius: 10px;\n"
|
||||
" background-color: #D3D3D3;\n"
|
||||
" border: 1px solid gray;\n"
|
||||
" padding: 4px 4px 4px 4px;\n"
|
||||
" outline: none;\n"
|
||||
"}")
|
||||
weight_h_layout.addWidget(self.comboBox_dropWeight)
|
||||
self.verticalLayout_11.addLayout(weight_h_layout)
|
||||
|
||||
self.stackedWidget_num = QStackedWidget(self.frame_20)
|
||||
self.stackedWidget_num.setObjectName(u"stackedWidget_num")
|
||||
|
||||
Reference in New Issue
Block a user