# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\taskForm.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_taskForm(object): def setupUi(self, taskForm): taskForm.setObjectName("taskForm") taskForm.resize(1996, 1051) taskForm.setStyleSheet("background-color: rgba(255, 255, 255, 0);") self.verticalLayout = QtWidgets.QVBoxLayout(taskForm) self.verticalLayout.setContentsMargins(10, 12, 10, 10) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtWidgets.QSplitter(parent=taskForm) self.splitter.setStyleSheet("background-color: rgba(0, 0, 0, 0)") self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) self.splitter.setHandleWidth(11) self.splitter.setChildrenCollapsible(True) self.splitter.setObjectName("splitter") self.w1 = QtWidgets.QFrame(parent=self.splitter) self.w1.setMinimumSize(QtCore.QSize(230, 0)) self.w1.setMaximumSize(QtCore.QSize(230, 16777215)) self.w1.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.w1.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) self.w1.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) self.w1.setObjectName("w1") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.w1) self.verticalLayout_2.setContentsMargins(0, 0, 0, 10) self.verticalLayout_2.setObjectName("verticalLayout_2") 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.w1) 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) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pbCreateGroup = QtWidgets.QPushButton(parent=self.w1) self.pbCreateGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateGroup.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/resource/add.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbCreateGroup.setIcon(icon) self.pbCreateGroup.setIconSize(QtCore.QSize(21, 21)) self.pbCreateGroup.setObjectName("pbCreateGroup") self.horizontalLayout.addWidget(self.pbCreateGroup) self.pbDeleteGroup = QtWidgets.QPushButton(parent=self.w1) self.pbDeleteGroup.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteGroup.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteGroup.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/resource/remove.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbDeleteGroup.setIcon(icon1) self.pbDeleteGroup.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteGroup.setObjectName("pbDeleteGroup") self.horizontalLayout.addWidget(self.pbDeleteGroup) self.verticalLayout_2.addLayout(self.horizontalLayout) self.tableViewTaskGroup = QtWidgets.QTableView(parent=self.w1) self.tableViewTaskGroup.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" "/* 垂直滚动条 */\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.tableViewTaskGroup.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked) self.tableViewTaskGroup.setDragEnabled(True) self.tableViewTaskGroup.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DropOnly) self.tableViewTaskGroup.setDefaultDropAction(QtCore.Qt.DropAction.MoveAction) self.tableViewTaskGroup.setAlternatingRowColors(True) self.tableViewTaskGroup.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewTaskGroup.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewTaskGroup.setShowGrid(False) self.tableViewTaskGroup.setSortingEnabled(True) self.tableViewTaskGroup.setObjectName("tableViewTaskGroup") self.tableViewTaskGroup.verticalHeader().setVisible(True) self.tableViewTaskGroup.verticalHeader().setCascadingSectionResizes(False) self.tableViewTaskGroup.verticalHeader().setHighlightSections(False) self.verticalLayout_2.addWidget(self.tableViewTaskGroup) self.w2 = QtWidgets.QFrame(parent=self.splitter) self.w2.setMinimumSize(QtCore.QSize(200, 0)) self.w2.setMaximumSize(QtCore.QSize(600, 16777215)) self.w2.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \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.w2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) self.w2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) self.w2.setObjectName("w2") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.w2) self.verticalLayout_3.setContentsMargins(0, 0, 0, 10) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(20, 18, 30, 16) self.horizontalLayout_2.setSpacing(15) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(parent=self.w2) 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) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.pbExportTask = QtWidgets.QPushButton(parent=self.w2) self.pbExportTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbExportTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbExportTask.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/resource/export.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbExportTask.setIcon(icon2) self.pbExportTask.setIconSize(QtCore.QSize(21, 21)) self.pbExportTask.setObjectName("pbExportTask") self.horizontalLayout_2.addWidget(self.pbExportTask) self.pbCreateTask = QtWidgets.QPushButton(parent=self.w2) self.pbCreateTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbCreateTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbCreateTask.setText("") self.pbCreateTask.setIcon(icon) self.pbCreateTask.setIconSize(QtCore.QSize(21, 21)) self.pbCreateTask.setObjectName("pbCreateTask") self.horizontalLayout_2.addWidget(self.pbCreateTask) self.pbDeleteTask = QtWidgets.QPushButton(parent=self.w2) self.pbDeleteTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteTask.setText("") self.pbDeleteTask.setIcon(icon1) self.pbDeleteTask.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteTask.setObjectName("pbDeleteTask") self.horizontalLayout_2.addWidget(self.pbDeleteTask) self.pbCopyTask = QtWidgets.QPushButton(parent=self.w2) self.pbCopyTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbCopyTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbCopyTask.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/resource/copy.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbCopyTask.setIcon(icon3) self.pbCopyTask.setIconSize(QtCore.QSize(21, 21)) self.pbCopyTask.setObjectName("pbCopyTask") self.horizontalLayout_2.addWidget(self.pbCopyTask) self.pbEditTask = QtWidgets.QPushButton(parent=self.w2) self.pbEditTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditTask.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/resource/edit.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditTask.setIcon(icon4) self.pbEditTask.setIconSize(QtCore.QSize(21, 21)) self.pbEditTask.setObjectName("pbEditTask") self.horizontalLayout_2.addWidget(self.pbEditTask) self.pbEditTaskScript = QtWidgets.QPushButton(parent=self.w2) self.pbEditTaskScript.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditTaskScript.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditTaskScript.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/resource/cmd.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbEditTaskScript.setIcon(icon5) self.pbEditTaskScript.setIconSize(QtCore.QSize(21, 21)) self.pbEditTaskScript.setObjectName("pbEditTaskScript") self.horizontalLayout_2.addWidget(self.pbEditTaskScript) self.pbStartTask = QtWidgets.QPushButton(parent=self.w2) self.pbStartTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbStartTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbStartTask.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/resource/run.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbStartTask.setIcon(icon6) self.pbStartTask.setIconSize(QtCore.QSize(21, 21)) self.pbStartTask.setObjectName("pbStartTask") self.horizontalLayout_2.addWidget(self.pbStartTask) self.pbStopTask = QtWidgets.QPushButton(parent=self.w2) self.pbStopTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbStopTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbStopTask.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/resource/stop.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbStopTask.setIcon(icon7) self.pbStopTask.setIconSize(QtCore.QSize(21, 21)) self.pbStopTask.setObjectName("pbStopTask") self.horizontalLayout_2.addWidget(self.pbStopTask) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.tableViewTask = QtWidgets.QTableView(parent=self.w2) self.tableViewTask.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" "/* 垂直滚动条 */\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.tableViewTask.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked) self.tableViewTask.setDragEnabled(True) self.tableViewTask.setDragDropOverwriteMode(False) self.tableViewTask.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragOnly) self.tableViewTask.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction) self.tableViewTask.setAlternatingRowColors(True) self.tableViewTask.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tableViewTask.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewTask.setShowGrid(False) self.tableViewTask.setSortingEnabled(True) self.tableViewTask.setObjectName("tableViewTask") self.tableViewTask.horizontalHeader().setVisible(True) self.tableViewTask.verticalHeader().setVisible(True) self.tableViewTask.verticalHeader().setHighlightSections(True) self.tableViewTask.verticalHeader().setSortIndicatorShown(False) self.verticalLayout_3.addWidget(self.tableViewTask) self.w3 = QtWidgets.QFrame(parent=self.splitter) self.w3.setStyleSheet("") self.w3.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) self.w3.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) self.w3.setObjectName("w3") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.w3) self.verticalLayout_5.setContentsMargins(0, 0, 0, 0) self.verticalLayout_5.setSpacing(10) self.verticalLayout_5.setObjectName("verticalLayout_5") 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" "}\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.setObjectName("widget") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_4.setContentsMargins(0, 0, 0, 10) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(20, 18, 25, 16) self.horizontalLayout_3.setSpacing(15) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(parent=self.widget) 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) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.pbEditScript = QtWidgets.QPushButton(parent=self.widget) self.pbEditScript.setMinimumSize(QtCore.QSize(21, 21)) self.pbEditScript.setMaximumSize(QtCore.QSize(21, 21)) self.pbEditScript.setText("") self.pbEditScript.setIcon(icon5) self.pbEditScript.setIconSize(QtCore.QSize(21, 21)) self.pbEditScript.setObjectName("pbEditScript") self.horizontalLayout_3.addWidget(self.pbEditScript) self.pbInsertTask = QtWidgets.QPushButton(parent=self.widget) self.pbInsertTask.setMinimumSize(QtCore.QSize(21, 21)) self.pbInsertTask.setMaximumSize(QtCore.QSize(21, 21)) self.pbInsertTask.setText("") icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/resource/addqueue.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbInsertTask.setIcon(icon8) self.pbInsertTask.setIconSize(QtCore.QSize(21, 21)) self.pbInsertTask.setObjectName("pbInsertTask") self.horizontalLayout_3.addWidget(self.pbInsertTask) self.pbInsertInstruction = QtWidgets.QPushButton(parent=self.widget) self.pbInsertInstruction.setMinimumSize(QtCore.QSize(21, 21)) self.pbInsertInstruction.setMaximumSize(QtCore.QSize(21, 21)) self.pbInsertInstruction.setText("") self.pbInsertInstruction.setIcon(icon) self.pbInsertInstruction.setIconSize(QtCore.QSize(21, 21)) self.pbInsertInstruction.setObjectName("pbInsertInstruction") self.horizontalLayout_3.addWidget(self.pbInsertInstruction) self.pbDeleteTaskDetail = QtWidgets.QPushButton(parent=self.widget) self.pbDeleteTaskDetail.setMinimumSize(QtCore.QSize(21, 21)) self.pbDeleteTaskDetail.setMaximumSize(QtCore.QSize(21, 21)) self.pbDeleteTaskDetail.setText("") self.pbDeleteTaskDetail.setIcon(icon1) self.pbDeleteTaskDetail.setIconSize(QtCore.QSize(21, 21)) self.pbDeleteTaskDetail.setObjectName("pbDeleteTaskDetail") self.horizontalLayout_3.addWidget(self.pbDeleteTaskDetail) self.pbSort = QtWidgets.QPushButton(parent=self.widget) self.pbSort.setMinimumSize(QtCore.QSize(21, 21)) self.pbSort.setMaximumSize(QtCore.QSize(21, 21)) self.pbSort.setText("") icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/resource/sort.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbSort.setIcon(icon9) self.pbSort.setIconSize(QtCore.QSize(21, 21)) self.pbSort.setObjectName("pbSort") self.horizontalLayout_3.addWidget(self.pbSort) self.pbUp = QtWidgets.QPushButton(parent=self.widget) self.pbUp.setMinimumSize(QtCore.QSize(21, 21)) self.pbUp.setMaximumSize(QtCore.QSize(21, 21)) self.pbUp.setText("") icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap(":/resource/up.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbUp.setIcon(icon10) self.pbUp.setIconSize(QtCore.QSize(21, 21)) self.pbUp.setObjectName("pbUp") self.horizontalLayout_3.addWidget(self.pbUp) self.pbDown = QtWidgets.QPushButton(parent=self.widget) self.pbDown.setMinimumSize(QtCore.QSize(21, 21)) self.pbDown.setMaximumSize(QtCore.QSize(21, 21)) self.pbDown.setText("") icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap(":/resource/down.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbDown.setIcon(icon11) self.pbDown.setIconSize(QtCore.QSize(21, 21)) self.pbDown.setObjectName("pbDown") self.horizontalLayout_3.addWidget(self.pbDown) self.pbSaveSort = QtWidgets.QPushButton(parent=self.widget) self.pbSaveSort.setMinimumSize(QtCore.QSize(21, 21)) self.pbSaveSort.setMaximumSize(QtCore.QSize(21, 21)) self.pbSaveSort.setText("") icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/resource/ok.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbSaveSort.setIcon(icon12) self.pbSaveSort.setIconSize(QtCore.QSize(21, 21)) self.pbSaveSort.setObjectName("pbSaveSort") self.horizontalLayout_3.addWidget(self.pbSaveSort) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.tableViewTaskDetail = QtWidgets.QTableView(parent=self.widget) self.tableViewTaskDetail.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" "QHeaderView::section:vertical {\n" " background-color: #FFFFFF; /* 设置表头的背景颜色为浅灰色 */\n" " color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n" " border: 0; /* 移除表头的边框 */\n" " padding: 4px; /* 设置表头的内边距 */\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.tableViewTaskDetail.setDragEnabled(False) self.tableViewTaskDetail.setDragDropOverwriteMode(True) self.tableViewTaskDetail.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.NoDragDrop) self.tableViewTaskDetail.setDefaultDropAction(QtCore.Qt.DropAction.MoveAction) self.tableViewTaskDetail.setAlternatingRowColors(True) self.tableViewTaskDetail.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection) self.tableViewTaskDetail.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows) self.tableViewTaskDetail.setShowGrid(False) self.tableViewTaskDetail.setObjectName("tableViewTaskDetail") self.tableViewTaskDetail.verticalHeader().setVisible(False) self.verticalLayout_4.addWidget(self.tableViewTaskDetail) self.verticalLayout_5.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_8 = QtWidgets.QVBoxLayout(self.w3_2) self.verticalLayout_8.setContentsMargins(16, 0, 16, 10) self.verticalLayout_8.setObjectName("verticalLayout_8") self.verticalLayout_12 = QtWidgets.QVBoxLayout() self.verticalLayout_12.setSpacing(0) self.verticalLayout_12.setObjectName("verticalLayout_12") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(4, 18, -1, 17) self.horizontalLayout_4.setSpacing(15) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_5 = QtWidgets.QLabel(parent=self.w3_2) 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_4.addWidget(self.label_5) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.verticalLayout_12.addLayout(self.horizontalLayout_4) 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_8.addLayout(self.verticalLayout_12) self.stackedWidgetDescription = QtWidgets.QStackedWidget(parent=self.w3_2) self.stackedWidgetDescription.setObjectName("stackedWidgetDescription") self.page1 = QtWidgets.QWidget() self.page1.setObjectName("page1") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page1) self.verticalLayout_7.setContentsMargins(0, 0, 0, 0) self.verticalLayout_7.setSpacing(0) self.verticalLayout_7.setObjectName("verticalLayout_7") self.textEditDescription = QtWidgets.QTextEdit(parent=self.page1) 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_7.addWidget(self.textEditDescription) self.stackedWidgetDescription.addWidget(self.page1) self.page2 = QtWidgets.QWidget() self.page2.setObjectName("page2") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.page2) self.verticalLayout_6.setContentsMargins(0, 0, 0, 0) self.verticalLayout_6.setSpacing(0) self.verticalLayout_6.setObjectName("verticalLayout_6") self.treeViewDescription = QtWidgets.QTreeView(parent=self.page2) self.treeViewDescription.setStyleSheet(" QWidget {\n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 1px;\n" " } \n" "QTreeView {\n" " background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n" " alternate-background-color: #F8F9FA;\n" " selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n" "}\n" "QTreeView::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.treeViewDescription.setObjectName("treeViewDescription") self.verticalLayout_6.addWidget(self.treeViewDescription) self.stackedWidgetDescription.addWidget(self.page2) self.verticalLayout_8.addWidget(self.stackedWidgetDescription) self.verticalLayout_5.addWidget(self.w3_2) self.verticalLayout_5.setStretch(0, 7) self.verticalLayout_5.setStretch(1, 3) self.verticalLayout.addWidget(self.splitter) self.retranslateUi(taskForm) self.stackedWidgetDescription.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(taskForm) def retranslateUi(self, taskForm): _translate = QtCore.QCoreApplication.translate taskForm.setWindowTitle(_translate("taskForm", "Form")) self.label.setText(_translate("taskForm", "任务分组")) self.pbCreateGroup.setToolTip(_translate("taskForm", "创建")) self.pbDeleteGroup.setToolTip(_translate("taskForm", "删除")) self.label_2.setText(_translate("taskForm", "任务")) self.pbExportTask.setToolTip(_translate("taskForm", "导出")) self.pbCreateTask.setToolTip(_translate("taskForm", "创建")) self.pbDeleteTask.setToolTip(_translate("taskForm", "删除")) self.pbCopyTask.setToolTip(_translate("taskForm", "复制")) self.pbEditTask.setToolTip(_translate("taskForm", "编辑")) self.pbEditTaskScript.setToolTip(_translate("taskForm", "编辑脚本Ctrl+T")) self.pbEditTaskScript.setShortcut(_translate("taskForm", "Ctrl+T")) self.pbStartTask.setToolTip(_translate("taskForm", "运行")) self.pbStopTask.setToolTip(_translate("taskForm", "停止")) self.label_3.setText(_translate("taskForm", "任务功能")) self.pbEditScript.setToolTip(_translate("taskForm", "编辑脚本Ctrl+E")) self.pbEditScript.setShortcut(_translate("taskForm", "Ctrl+E")) self.pbInsertTask.setToolTip(_translate("taskForm", "添加任务")) self.pbInsertInstruction.setToolTip(_translate("taskForm", "添加指令")) self.pbDeleteTaskDetail.setToolTip(_translate("taskForm", "删除")) self.pbSort.setToolTip(_translate("taskForm", "排序")) self.pbUp.setToolTip(_translate("taskForm", "上移")) self.pbDown.setToolTip(_translate("taskForm", "下移")) self.pbSaveSort.setToolTip(_translate("taskForm", "保存")) self.label_5.setText(_translate("taskForm", "功能描述"))