# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\deviceForm.ui' # # Created by: PyQt6 UI code generator 6.7.1 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets class Ui_deviceForm(object): def setupUi(self, deviceForm): deviceForm.setObjectName("deviceForm") deviceForm.resize(1287, 893) deviceForm.setStyleSheet("background-color: rgba(255, 255, 255, 0);") self.verticalLayout_7 = QtWidgets.QVBoxLayout(deviceForm) self.verticalLayout_7.setContentsMargins(10, 12, 10, 10) self.verticalLayout_7.setObjectName("verticalLayout_7") self.splitter = QtWidgets.QSplitter(parent=deviceForm) self.splitter.setStyleSheet("background-color: rgba(0, 0, 0, 0);") self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) self.splitter.setHandleWidth(11) self.splitter.setObjectName("splitter") self.w2 = QtWidgets.QWidget(parent=self.splitter) self.w2.setMinimumSize(QtCore.QSize(0, 0)) self.w2.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.w2.setStyleSheet("background-color: rgba(0, 0, 0, 0);") self.w2.setObjectName("w2") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.w2) self.verticalLayout_11.setContentsMargins(0, 0, 0, 0) self.verticalLayout_11.setSpacing(10) self.verticalLayout_11.setObjectName("verticalLayout_11") self.widget_device_group = QtWidgets.QWidget(parent=self.w2) self.widget_device_group.setMinimumSize(QtCore.QSize(0, 279)) self.widget_device_group.setMaximumSize(QtCore.QSize(16777215, 279)) self.widget_device_group.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.widget_device_group.setObjectName("widget_device_group") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget_device_group) self.verticalLayout_8.setContentsMargins(0, 0, 0, 10) self.verticalLayout_8.setObjectName("verticalLayout_8") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setContentsMargins(20, 18, 21, 16) self.horizontalLayout_6.setSpacing(15) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_6 = QtWidgets.QLabel(parent=self.widget_device_group) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName("label_6") self.horizontalLayout_6.addWidget(self.label_6) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_6.addItem(spacerItem) self.pbCreateDevGroup = QtWidgets.QPushButton(parent=self.widget_device_group) self.pbCreateDevGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateDevGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateDevGroup.setStyleSheet("") self.pbCreateDevGroup.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/resource/add.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbCreateDevGroup.setIcon(icon) self.pbCreateDevGroup.setIconSize(QtCore.QSize(21, 21)) self.pbCreateDevGroup.setObjectName("pbCreateDevGroup") self.horizontalLayout_6.addWidget(self.pbCreateDevGroup) self.pbDeleteDevGroup = QtWidgets.QPushButton(parent=self.widget_device_group) self.pbDeleteDevGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteDevGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteDevGroup.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/resource/remove.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbDeleteDevGroup.setIcon(icon1) self.pbDeleteDevGroup.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteDevGroup.setObjectName("pbDeleteDevGroup") self.horizontalLayout_6.addWidget(self.pbDeleteDevGroup) self.verticalLayout_8.addLayout(self.horizontalLayout_6) self.tableViewDevGroup = QtWidgets.QTableView(parent=self.widget_device_group) self.tableViewDevGroup.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" "} \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewDevGroup.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewDevGroup.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked) self.tableViewDevGroup.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DropOnly) self.tableViewDevGroup.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction) self.tableViewDevGroup.setAlternatingRowColors(True) self.tableViewDevGroup.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewDevGroup.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewDevGroup.setShowGrid(False) self.tableViewDevGroup.setSortingEnabled(True) self.tableViewDevGroup.setObjectName("tableViewDevGroup") self.tableViewDevGroup.verticalHeader().setVisible(True) self.verticalLayout_8.addWidget(self.tableViewDevGroup) self.verticalLayout_11.addWidget(self.widget_device_group) self.widget_device = QtWidgets.QWidget(parent=self.w2) self.widget_device.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.widget_device.setObjectName("widget_device") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.widget_device) self.verticalLayout_6.setContentsMargins(0, 0, 0, 10) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(20, 18, 21, 16) self.horizontalLayout_5.setSpacing(15) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_5 = QtWidgets.QLabel(parent=self.widget_device) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.horizontalLayout_5.addWidget(self.label_5) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.pbExportDev = QtWidgets.QPushButton(parent=self.widget_device) self.pbExportDev.setMinimumSize(QtCore.QSize(21, 21)) self.pbExportDev.setMaximumSize(QtCore.QSize(21, 21)) self.pbExportDev.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/resource/export.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbExportDev.setIcon(icon2) self.pbExportDev.setIconSize(QtCore.QSize(21, 21)) self.pbExportDev.setObjectName("pbExportDev") self.horizontalLayout_5.addWidget(self.pbExportDev) self.pbCreateDev = QtWidgets.QPushButton(parent=self.widget_device) self.pbCreateDev.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateDev.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateDev.setStyleSheet("") self.pbCreateDev.setText("") self.pbCreateDev.setIcon(icon) self.pbCreateDev.setIconSize(QtCore.QSize(21, 21)) self.pbCreateDev.setObjectName("pbCreateDev") self.horizontalLayout_5.addWidget(self.pbCreateDev) self.pbDeleteDev = QtWidgets.QPushButton(parent=self.widget_device) self.pbDeleteDev.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteDev.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteDev.setText("") self.pbDeleteDev.setIcon(icon1) self.pbDeleteDev.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteDev.setObjectName("pbDeleteDev") self.horizontalLayout_5.addWidget(self.pbDeleteDev) self.pbEditDev = QtWidgets.QPushButton(parent=self.widget_device) self.pbEditDev.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditDev.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditDev.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/resource/edit.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditDev.setIcon(icon3) self.pbEditDev.setIconSize(QtCore.QSize(21, 21)) self.pbEditDev.setObjectName("pbEditDev") self.horizontalLayout_5.addWidget(self.pbEditDev) self.verticalLayout_6.addLayout(self.horizontalLayout_5) self.tableViewDevice = QtWidgets.QTableView(parent=self.widget_device) self.tableViewDevice.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" "} \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewDevice.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewDevice.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) self.tableViewDevice.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragOnly) self.tableViewDevice.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction) self.tableViewDevice.setAlternatingRowColors(True) self.tableViewDevice.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewDevice.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewDevice.setShowGrid(False) self.tableViewDevice.setSortingEnabled(True) self.tableViewDevice.setObjectName("tableViewDevice") self.tableViewDevice.verticalHeader().setVisible(True) self.verticalLayout_6.addWidget(self.tableViewDevice) self.verticalLayout_11.addWidget(self.widget_device) self.verticalLayout_11.setStretch(0, 3) self.verticalLayout_11.setStretch(1, 7) self.w1 = QtWidgets.QWidget(parent=self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.w1.sizePolicy().hasHeightForWidth()) self.w1.setSizePolicy(sizePolicy) self.w1.setMinimumSize(QtCore.QSize(200, 0)) self.w1.setMaximumSize(QtCore.QSize(400, 16777215)) self.w1.setStyleSheet("background-color: rgba(0, 0, 0, 0);") self.w1.setObjectName("w1") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.w1) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setSpacing(10) self.verticalLayout_2.setObjectName("verticalLayout_2") self.widget_7 = QtWidgets.QWidget(parent=self.w1) self.widget_7.setMinimumSize(QtCore.QSize(0, 279)) self.widget_7.setMaximumSize(QtCore.QSize(400, 279)) self.widget_7.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } ") self.widget_7.setObjectName("widget_7") self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.widget_7) self.verticalLayout_10.setContentsMargins(16, 0, 16, 10) self.verticalLayout_10.setSpacing(6) self.verticalLayout_10.setObjectName("verticalLayout_10") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(4, 18, -1, 17) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(parent=self.widget_7) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.widget_3 = QtWidgets.QWidget(parent=self.widget_7) self.widget_3.setMinimumSize(QtCore.QSize(0, 1)) self.widget_3.setMaximumSize(QtCore.QSize(16777214, 1)) self.widget_3.setStyleSheet("background-color: rgb(241, 241, 241);") self.widget_3.setObjectName("widget_3") self.verticalLayout_3.addWidget(self.widget_3) self.verticalLayout_10.addLayout(self.verticalLayout_3) self.widget_2 = QtWidgets.QWidget(parent=self.widget_7) self.widget_2.setMinimumSize(QtCore.QSize(0, 200)) self.widget_2.setStyleSheet("background-color: rgb(241, 241, 241);\n" "border-radius: 0px;") self.widget_2.setObjectName("widget_2") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.widget_2) self.verticalLayout_9.setObjectName("verticalLayout_9") self.lbDeviceImage = QtWidgets.QLabel(parent=self.widget_2) self.lbDeviceImage.setMinimumSize(QtCore.QSize(0, 200)) self.lbDeviceImage.setMaximumSize(QtCore.QSize(16777215, 200)) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(40) font.setBold(True) font.setWeight(75) self.lbDeviceImage.setFont(font) self.lbDeviceImage.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight) self.lbDeviceImage.setStyleSheet("color: rgb(221, 221, 221);") self.lbDeviceImage.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) self.lbDeviceImage.setObjectName("lbDeviceImage") self.verticalLayout_9.addWidget(self.lbDeviceImage) self.verticalLayout_10.addWidget(self.widget_2) self.verticalLayout_2.addWidget(self.widget_7) self.widget_8 = QtWidgets.QWidget(parent=self.w1) self.widget_8.setMinimumSize(QtCore.QSize(0, 0)) self.widget_8.setMaximumSize(QtCore.QSize(400, 16777215)) self.widget_8.setStyleSheet("QWidget{ \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" "} \n" "QComboBox {\n" " color: #000000\n" "}\n" "QComboBox::drop-down {\n" " border: none\n" "}\n" "QComboBox::down-arrow {\n" " image: url(:/resource/dropdown.svg);\n" " width: 18px;\n" " height: 18px;\n" "}") self.widget_8.setObjectName("widget_8") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget_8) self.verticalLayout_4.setContentsMargins(0, 0, 0, 10) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(20, 18, -1, 16) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(parent=self.widget_8) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.horizontalLayout_3.addWidget(self.label_3) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.tableViewInterFace = QtWidgets.QTableView(parent=self.widget_8) self.tableViewInterFace.setStyleSheet(" QWidget {\n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 1px;\n" " } \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "QHeaderView::section:vertical {\n" " border: 0; /* 移除表头的边框 */\n" "}\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewInterFace.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewInterFace.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) self.tableViewInterFace.setDragDropOverwriteMode(False) self.tableViewInterFace.setAlternatingRowColors(True) self.tableViewInterFace.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewInterFace.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewInterFace.setVerticalScrollMode(QtWidgets.QAbstractItemView.ScrollMode.ScrollPerItem) self.tableViewInterFace.setShowGrid(False) self.tableViewInterFace.setGridStyle(QtCore.Qt.PenStyle.SolidLine) self.tableViewInterFace.setObjectName("tableViewInterFace") self.tableViewInterFace.horizontalHeader().setVisible(True) self.tableViewInterFace.verticalHeader().setVisible(False) self.verticalLayout_4.addWidget(self.tableViewInterFace) self.verticalLayout_2.addWidget(self.widget_8) self.widget_9 = QtWidgets.QWidget(parent=self.w1) self.widget_9.setMinimumSize(QtCore.QSize(0, 279)) self.widget_9.setMaximumSize(QtCore.QSize(400, 279)) self.widget_9.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.widget_9.setObjectName("widget_9") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget_9) self.verticalLayout_5.setContentsMargins(0, 0, 0, -1) self.verticalLayout_5.setSpacing(0) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_4.setSpacing(15) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(parent=self.widget_9) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_4.addItem(spacerItem4) self.pbAddProperty = QtWidgets.QPushButton(parent=self.widget_9) self.pbAddProperty.setMinimumSize(QtCore.QSize(21, 21)) self.pbAddProperty.setMaximumSize(QtCore.QSize(21, 21)) self.pbAddProperty.setText("") self.pbAddProperty.setIcon(icon) self.pbAddProperty.setIconSize(QtCore.QSize(21, 21)) self.pbAddProperty.setObjectName("pbAddProperty") self.horizontalLayout_4.addWidget(self.pbAddProperty) self.pbDeleteProperty = QtWidgets.QPushButton(parent=self.widget_9) self.pbDeleteProperty.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setText("") self.pbDeleteProperty.setIcon(icon1) self.pbDeleteProperty.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteProperty.setObjectName("pbDeleteProperty") self.horizontalLayout_4.addWidget(self.pbDeleteProperty) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.tableViewProperty = QtWidgets.QTableView(parent=self.widget_9) self.tableViewProperty.setStyleSheet(" QWidget {\n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 1px;\n" " } \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "\n" "QHeaderView::section:vertical {\n" " border: 0; /* 移除表头的边框 */\n" "}\n" "/* 垂直滚动条 */\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewProperty.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewProperty.setTabKeyNavigation(True) self.tableViewProperty.setProperty("showDropIndicator", True) self.tableViewProperty.setAlternatingRowColors(True) self.tableViewProperty.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewProperty.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewProperty.setShowGrid(False) self.tableViewProperty.setObjectName("tableViewProperty") self.tableViewProperty.verticalHeader().setVisible(False) self.verticalLayout_5.addWidget(self.tableViewProperty) self.verticalLayout_2.addWidget(self.widget_9) self.verticalLayout_2.setStretch(0, 3) self.verticalLayout_2.setStretch(1, 4) self.verticalLayout_2.setStretch(2, 3) self.w3 = QtWidgets.QWidget(parent=self.splitter) self.w3.setMinimumSize(QtCore.QSize(0, 0)) self.w3.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.w3.setStyleSheet("") self.w3.setObjectName("w3") self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.w3) self.verticalLayout_14.setContentsMargins(0, 0, 0, 0) self.verticalLayout_14.setSpacing(10) self.verticalLayout_14.setObjectName("verticalLayout_14") self.widget = QtWidgets.QWidget(parent=self.w3) self.widget.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.widget.setObjectName("widget") self.verticalLayout = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout.setContentsMargins(0, 0, 0, 10) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setContentsMargins(20, 18, 21, 16) self.horizontalLayout.setSpacing(15) self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(parent=self.widget) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem5) self.pbEditScript = QtWidgets.QPushButton(parent=self.widget) self.pbEditScript.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditScript.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditScript.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/resource/cmd.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditScript.setIcon(icon4) self.pbEditScript.setIconSize(QtCore.QSize(21, 21)) self.pbEditScript.setObjectName("pbEditScript") self.horizontalLayout.addWidget(self.pbEditScript) self.pbStart = QtWidgets.QPushButton(parent=self.widget) self.pbStart.setMinimumSize(QtCore.QSize(21, 21)) self.pbStart.setMaximumSize(QtCore.QSize(21, 21)) self.pbStart.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/resource/run.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbStart.setIcon(icon5) self.pbStart.setIconSize(QtCore.QSize(21, 21)) self.pbStart.setObjectName("pbStart") self.horizontalLayout.addWidget(self.pbStart) self.pbStop = QtWidgets.QPushButton(parent=self.widget) self.pbStop.setMinimumSize(QtCore.QSize(21, 21)) self.pbStop.setMaximumSize(QtCore.QSize(21, 21)) self.pbStop.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/resource/stop.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbStop.setIcon(icon6) self.pbStop.setIconSize(QtCore.QSize(21, 21)) self.pbStop.setObjectName("pbStop") self.horizontalLayout.addWidget(self.pbStop) self.verticalLayout.addLayout(self.horizontalLayout) self.tableViewDevCmd = QtWidgets.QTableView(parent=self.widget) self.tableViewDevCmd.setStyleSheet("QWidget {\n" " background-color: #ffffff; /* 子部件的样式 */\n" " border-radius: 0px;\n" "} \n" "QTableView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTableView::item:selected {\n" " background-color: #D9D9D9;\n" " \n" "}\n" "QTableView QTableCornerButton::section { /*左上角的button样式*/ \n" " background-color: #F7F7F7; /*背景颜色与表头一致*/ \n" " border: 0px; \n" " border-radius:0px; \n" "} \n" "\n" "QHeaderView::section:horizontal {\n" " background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\n" "}\n" "QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.tableViewDevCmd.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tableViewDevCmd.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) self.tableViewDevCmd.setAlternatingRowColors(True) self.tableViewDevCmd.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewDevCmd.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewDevCmd.setShowGrid(False) self.tableViewDevCmd.setSortingEnabled(True) self.tableViewDevCmd.setObjectName("tableViewDevCmd") self.tableViewDevCmd.verticalHeader().setVisible(True) self.verticalLayout.addWidget(self.tableViewDevCmd) self.verticalLayout_14.addWidget(self.widget) self.w3_2 = QtWidgets.QWidget(parent=self.w3) self.w3_2.setMinimumSize(QtCore.QSize(0, 279)) self.w3_2.setMaximumSize(QtCore.QSize(16777215, 279)) self.w3_2.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}") self.w3_2.setObjectName("w3_2") self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.w3_2) self.verticalLayout_13.setContentsMargins(16, 0, 16, 10) self.verticalLayout_13.setObjectName("verticalLayout_13") self.verticalLayout_12 = QtWidgets.QVBoxLayout() self.verticalLayout_12.setSpacing(0) self.verticalLayout_12.setObjectName("verticalLayout_12") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setContentsMargins(4, 18, -1, 17) self.horizontalLayout_7.setSpacing(15) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_7 = QtWidgets.QLabel(parent=self.w3_2) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_7.addItem(spacerItem6) self.verticalLayout_12.addLayout(self.horizontalLayout_7) self.widget_4 = QtWidgets.QWidget(parent=self.w3_2) self.widget_4.setMinimumSize(QtCore.QSize(0, 1)) self.widget_4.setMaximumSize(QtCore.QSize(16777214, 1)) self.widget_4.setStyleSheet("background-color: rgb(241, 241, 241);") self.widget_4.setObjectName("widget_4") self.verticalLayout_12.addWidget(self.widget_4) self.verticalLayout_13.addLayout(self.verticalLayout_12) self.textEditDescription = QtWidgets.QTextEdit(parent=self.w3_2) self.textEditDescription.setEnabled(False) self.textEditDescription.setStyleSheet("\n" "QTextEdit {\n" " border-radius: 0px;\n" " border-color: rgb(0, 0, 0);\n" " background-color: rgb(248, 249, 250);\n" "}") self.textEditDescription.setObjectName("textEditDescription") self.verticalLayout_13.addWidget(self.textEditDescription) self.verticalLayout_14.addWidget(self.w3_2) self.verticalLayout_14.setStretch(0, 7) self.verticalLayout_14.setStretch(1, 3) self.verticalLayout_7.addWidget(self.splitter) self.retranslateUi(deviceForm) QtCore.QMetaObject.connectSlotsByName(deviceForm) def retranslateUi(self, deviceForm): _translate = QtCore.QCoreApplication.translate deviceForm.setWindowTitle(_translate("deviceForm", "Form")) self.label_6.setText(_translate("deviceForm", "设备分组")) self.pbCreateDevGroup.setToolTip(_translate("deviceForm", "创建设备")) self.pbDeleteDevGroup.setToolTip(_translate("deviceForm", "删除设备")) self.label_5.setText(_translate("deviceForm", "设备")) self.pbExportDev.setToolTip(_translate("deviceForm", "导出设备模型")) self.pbCreateDev.setToolTip(_translate("deviceForm", "创建设备")) self.pbDeleteDev.setToolTip(_translate("deviceForm", "删除设备")) self.pbEditDev.setToolTip(_translate("deviceForm", "编辑设备")) self.label_2.setText(_translate("deviceForm", "封面")) self.lbDeviceImage.setText(_translate("deviceForm", "封面")) self.label_3.setText(_translate("deviceForm", "接口")) self.label_4.setText(_translate("deviceForm", "属性")) self.pbAddProperty.setToolTip(_translate("deviceForm", "添加属性")) self.pbDeleteProperty.setToolTip(_translate("deviceForm", "删除属性")) self.label.setText(_translate("deviceForm", "设备指令")) self.pbEditScript.setToolTip(_translate("deviceForm", "编辑脚本Ctrl+E")) self.pbEditScript.setShortcut(_translate("deviceForm", "Ctrl+E")) self.pbStart.setToolTip(_translate("deviceForm", "运行")) self.pbStop.setToolTip(_translate("deviceForm", "停止")) self.label_7.setText(_translate("deviceForm", "指令描述"))