610 lines
31 KiB
Python
610 lines
31 KiB
Python
|
|
# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\mainForm.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_MainWindow(object):
|
||
|
|
def setupUi(self, MainWindow):
|
||
|
|
MainWindow.setObjectName("MainWindow")
|
||
|
|
MainWindow.resize(1516, 1068)
|
||
|
|
MainWindow.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setPointSize(19)
|
||
|
|
MainWindow.setFont(font)
|
||
|
|
MainWindow.setWindowTitle("")
|
||
|
|
MainWindow.setStyleSheet("")
|
||
|
|
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
|
||
|
|
self.centralwidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||
|
|
self.centralwidget.setStyleSheet("")
|
||
|
|
self.centralwidget.setObjectName("centralwidget")
|
||
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
|
||
|
|
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_2.setSpacing(0)
|
||
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||
|
|
self.toolBar = QtWidgets.QWidget(parent=self.centralwidget)
|
||
|
|
self.toolBar.setMinimumSize(QtCore.QSize(0, 30))
|
||
|
|
self.toolBar.setMaximumSize(QtCore.QSize(16777215, 30))
|
||
|
|
self.toolBar.setStyleSheet(" QWidget QPushButton {\n"
|
||
|
|
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
|
||
|
|
" color: rgb(255, 255, 255); \n"
|
||
|
|
" border: none; /* 去掉按钮的边框 */\n"
|
||
|
|
" }\n"
|
||
|
|
" QWidget{\n"
|
||
|
|
"background-color: rgba(244, 247, 249, 255);\n"
|
||
|
|
"} /*qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(191, 205, 220, 255), stop:1 rgba(214, 227, 241, 255));\n"
|
||
|
|
"}*/")
|
||
|
|
self.toolBar.setObjectName("toolBar")
|
||
|
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.toolBar)
|
||
|
|
self.horizontalLayout_5.setContentsMargins(5, 0, 0, 0)
|
||
|
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||
|
|
self.lbIcon = QtWidgets.QLabel(parent=self.toolBar)
|
||
|
|
self.lbIcon.setMinimumSize(QtCore.QSize(20, 20))
|
||
|
|
self.lbIcon.setMaximumSize(QtCore.QSize(20, 20))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("微软雅黑")
|
||
|
|
font.setPointSize(9)
|
||
|
|
self.lbIcon.setFont(font)
|
||
|
|
self.lbIcon.setStyleSheet("color: rgb(140, 140, 140);")
|
||
|
|
self.lbIcon.setText("")
|
||
|
|
self.lbIcon.setPixmap(QtGui.QPixmap(":/resource/logo.ico"))
|
||
|
|
self.lbIcon.setScaledContents(True)
|
||
|
|
self.lbIcon.setObjectName("lbIcon")
|
||
|
|
self.horizontalLayout_5.addWidget(self.lbIcon)
|
||
|
|
self.lbtitle = QtWidgets.QLabel(parent=self.toolBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("微软雅黑")
|
||
|
|
font.setPointSize(9)
|
||
|
|
self.lbtitle.setFont(font)
|
||
|
|
self.lbtitle.setStyleSheet("color: rgb(28, 0, 37);")
|
||
|
|
self.lbtitle.setText("")
|
||
|
|
self.lbtitle.setObjectName("lbtitle")
|
||
|
|
self.horizontalLayout_5.addWidget(self.lbtitle)
|
||
|
|
spacerItem = QtWidgets.QSpacerItem(1358, 19, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
|
self.horizontalLayout_5.addItem(spacerItem)
|
||
|
|
self.pbMin = QtWidgets.QPushButton(parent=self.toolBar)
|
||
|
|
self.pbMin.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbMin.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbMin.setText("")
|
||
|
|
icon = QtGui.QIcon()
|
||
|
|
icon.addPixmap(QtGui.QPixmap(":/resource/w_min.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.pbMin.setIcon(icon)
|
||
|
|
self.pbMin.setObjectName("pbMin")
|
||
|
|
self.horizontalLayout_5.addWidget(self.pbMin)
|
||
|
|
self.pbRestore = QtWidgets.QPushButton(parent=self.toolBar)
|
||
|
|
self.pbRestore.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbRestore.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbRestore.setText("")
|
||
|
|
icon1 = QtGui.QIcon()
|
||
|
|
icon1.addPixmap(QtGui.QPixmap(":/resource/w_normal.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.pbRestore.setIcon(icon1)
|
||
|
|
self.pbRestore.setObjectName("pbRestore")
|
||
|
|
self.horizontalLayout_5.addWidget(self.pbRestore)
|
||
|
|
self.pbMax = QtWidgets.QPushButton(parent=self.toolBar)
|
||
|
|
self.pbMax.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbMax.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbMax.setText("")
|
||
|
|
icon2 = QtGui.QIcon()
|
||
|
|
icon2.addPixmap(QtGui.QPixmap(":/resource/w_max.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.pbMax.setIcon(icon2)
|
||
|
|
self.pbMax.setObjectName("pbMax")
|
||
|
|
self.horizontalLayout_5.addWidget(self.pbMax)
|
||
|
|
self.pbClose = QtWidgets.QPushButton(parent=self.toolBar)
|
||
|
|
self.pbClose.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbClose.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.pbClose.setText("")
|
||
|
|
icon3 = QtGui.QIcon()
|
||
|
|
icon3.addPixmap(QtGui.QPixmap(":/resource/w_close.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.pbClose.setIcon(icon3)
|
||
|
|
self.pbClose.setIconSize(QtCore.QSize(16, 16))
|
||
|
|
self.pbClose.setObjectName("pbClose")
|
||
|
|
self.horizontalLayout_5.addWidget(self.pbClose)
|
||
|
|
self.verticalLayout_2.addWidget(self.toolBar)
|
||
|
|
self.stackedWidgetMain = QtWidgets.QStackedWidget(parent=self.centralwidget)
|
||
|
|
self.stackedWidgetMain.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||
|
|
self.stackedWidgetMain.setStyleSheet("")
|
||
|
|
self.stackedWidgetMain.setObjectName("stackedWidgetMain")
|
||
|
|
self.page_main = QtWidgets.QWidget()
|
||
|
|
self.page_main.setStyleSheet("QWidget {\n"
|
||
|
|
" background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(237, 243, 251, 255), stop:1 rgba(161, 202, 251, 255));\n"
|
||
|
|
" }\n"
|
||
|
|
"")
|
||
|
|
self.page_main.setObjectName("page_main")
|
||
|
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.page_main)
|
||
|
|
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.horizontalLayout_4.setSpacing(0)
|
||
|
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||
|
|
self.leftFrame = QtWidgets.QFrame(parent=self.page_main)
|
||
|
|
self.leftFrame.setMinimumSize(QtCore.QSize(110, 0))
|
||
|
|
self.leftFrame.setMaximumSize(QtCore.QSize(110, 16777215))
|
||
|
|
self.leftFrame.setStyleSheet("\n"
|
||
|
|
" QWidget {\n"
|
||
|
|
" \n"
|
||
|
|
" background-color: #007EFF; /* 子部件的样式 */\n"
|
||
|
|
"\n"
|
||
|
|
" } \n"
|
||
|
|
" QWidget QPushButton {\n"
|
||
|
|
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
|
||
|
|
" color: rgb(255, 255, 255); \n"
|
||
|
|
" border: none; /* 去掉按钮的边框 */\n"
|
||
|
|
" }\n"
|
||
|
|
"\n"
|
||
|
|
" QWidget QPushButton:pressed {\n"
|
||
|
|
" subcontrol-origin: content;\n"
|
||
|
|
" background-color: #0969CB ; /* 按钮按下时的背景颜色为红色 */\n"
|
||
|
|
" border: none; /* 去掉按钮的边框 */\n"
|
||
|
|
"}\n"
|
||
|
|
"QWidget QPushButton:focus {\n"
|
||
|
|
" outline: none; /* 隐藏按钮的焦点边框 */\n"
|
||
|
|
"}\n"
|
||
|
|
"/* 选中的按钮样式 */\n"
|
||
|
|
"QPushButton:checked {\n"
|
||
|
|
" background-color: #0969CB; /* 背景颜色变为蓝色 */\n"
|
||
|
|
" color: white; /* 文字颜色变为白色 */\n"
|
||
|
|
" border: none; /* 去掉按钮的边框 */\n"
|
||
|
|
"}")
|
||
|
|
self.leftFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
|
||
|
|
self.leftFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
|
||
|
|
self.leftFrame.setObjectName("leftFrame")
|
||
|
|
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.leftFrame)
|
||
|
|
self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_8.setSpacing(0)
|
||
|
|
self.verticalLayout_8.setObjectName("verticalLayout_8")
|
||
|
|
self.vl1 = QtWidgets.QVBoxLayout()
|
||
|
|
self.vl1.setContentsMargins(-1, 34, -1, 18)
|
||
|
|
self.vl1.setSpacing(23)
|
||
|
|
self.vl1.setObjectName("vl1")
|
||
|
|
self.tbModel = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbModel.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbModel.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbModel.setFont(font)
|
||
|
|
self.tbModel.setToolTip("")
|
||
|
|
icon4 = QtGui.QIcon()
|
||
|
|
icon4.addPixmap(QtGui.QPixmap(":/resource/model.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbModel.setIcon(icon4)
|
||
|
|
self.tbModel.setIconSize(QtCore.QSize(19, 19))
|
||
|
|
self.tbModel.setCheckable(True)
|
||
|
|
self.tbModel.setChecked(True)
|
||
|
|
self.tbModel.setObjectName("tbModel")
|
||
|
|
self.buttonGroup = QtWidgets.QButtonGroup(MainWindow)
|
||
|
|
self.buttonGroup.setObjectName("buttonGroup")
|
||
|
|
self.buttonGroup.addButton(self.tbModel)
|
||
|
|
self.vl1.addWidget(self.tbModel)
|
||
|
|
self.tbDev = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbDev.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbDev.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbDev.setFont(font)
|
||
|
|
self.tbDev.setToolTip("")
|
||
|
|
icon5 = QtGui.QIcon()
|
||
|
|
icon5.addPixmap(QtGui.QPixmap(":/resource/device.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbDev.setIcon(icon5)
|
||
|
|
self.tbDev.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbDev.setCheckable(True)
|
||
|
|
self.tbDev.setObjectName("tbDev")
|
||
|
|
self.buttonGroup.addButton(self.tbDev)
|
||
|
|
self.vl1.addWidget(self.tbDev)
|
||
|
|
self.tbTask = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbTask.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbTask.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbTask.setFont(font)
|
||
|
|
self.tbTask.setToolTip("")
|
||
|
|
icon6 = QtGui.QIcon()
|
||
|
|
icon6.addPixmap(QtGui.QPixmap(":/resource/task.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbTask.setIcon(icon6)
|
||
|
|
self.tbTask.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbTask.setCheckable(True)
|
||
|
|
self.tbTask.setObjectName("tbTask")
|
||
|
|
self.buttonGroup.addButton(self.tbTask)
|
||
|
|
self.vl1.addWidget(self.tbTask)
|
||
|
|
self.tbDataSync = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbDataSync.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbDataSync.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbDataSync.setFont(font)
|
||
|
|
self.tbDataSync.setToolTip("")
|
||
|
|
icon7 = QtGui.QIcon()
|
||
|
|
icon7.addPixmap(QtGui.QPixmap(":/resource/impt.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbDataSync.setIcon(icon7)
|
||
|
|
self.tbDataSync.setIconSize(QtCore.QSize(16, 16))
|
||
|
|
self.tbDataSync.setCheckable(True)
|
||
|
|
self.tbDataSync.setObjectName("tbDataSync")
|
||
|
|
self.buttonGroup.addButton(self.tbDataSync)
|
||
|
|
self.vl1.addWidget(self.tbDataSync)
|
||
|
|
self.tbAppStore = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbAppStore.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbAppStore.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbAppStore.setFont(font)
|
||
|
|
self.tbAppStore.setToolTip("")
|
||
|
|
icon8 = QtGui.QIcon()
|
||
|
|
icon8.addPixmap(QtGui.QPixmap(":/resource/store.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbAppStore.setIcon(icon8)
|
||
|
|
self.tbAppStore.setIconSize(QtCore.QSize(22, 22))
|
||
|
|
self.tbAppStore.setCheckable(True)
|
||
|
|
self.tbAppStore.setObjectName("tbAppStore")
|
||
|
|
self.buttonGroup.addButton(self.tbAppStore)
|
||
|
|
self.vl1.addWidget(self.tbAppStore)
|
||
|
|
self.tbProject = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbProject.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbProject.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbProject.setFont(font)
|
||
|
|
self.tbProject.setToolTip("")
|
||
|
|
icon9 = QtGui.QIcon()
|
||
|
|
icon9.addPixmap(QtGui.QPixmap(":/resource/project.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbProject.setIcon(icon9)
|
||
|
|
self.tbProject.setIconSize(QtCore.QSize(22, 22))
|
||
|
|
self.tbProject.setCheckable(True)
|
||
|
|
self.tbProject.setObjectName("tbProject")
|
||
|
|
self.buttonGroup.addButton(self.tbProject)
|
||
|
|
self.vl1.addWidget(self.tbProject)
|
||
|
|
self.tbSetting = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbSetting.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbSetting.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbSetting.setFont(font)
|
||
|
|
self.tbSetting.setToolTip("")
|
||
|
|
icon10 = QtGui.QIcon()
|
||
|
|
icon10.addPixmap(QtGui.QPixmap(":/resource/setting.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbSetting.setIcon(icon10)
|
||
|
|
self.tbSetting.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbSetting.setCheckable(True)
|
||
|
|
self.tbSetting.setObjectName("tbSetting")
|
||
|
|
self.buttonGroup.addButton(self.tbSetting)
|
||
|
|
self.vl1.addWidget(self.tbSetting)
|
||
|
|
self.quickTaskbar = QtQuickWidgets.QQuickWidget(parent=self.leftFrame)
|
||
|
|
self.quickTaskbar.setMinimumSize(QtCore.QSize(0, 300))
|
||
|
|
self.quickTaskbar.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.quickTaskbar.setResizeMode(QtQuickWidgets.QQuickWidget.ResizeMode.SizeRootObjectToView)
|
||
|
|
self.quickTaskbar.setObjectName("quickTaskbar")
|
||
|
|
self.vl1.addWidget(self.quickTaskbar)
|
||
|
|
spacerItem1 = QtWidgets.QSpacerItem(20, 476, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||
|
|
self.vl1.addItem(spacerItem1)
|
||
|
|
self.tbDefault = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbDefault.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbDefault.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbDefault.setFont(font)
|
||
|
|
self.tbDefault.setToolTip("")
|
||
|
|
self.tbDefault.setIcon(icon9)
|
||
|
|
self.tbDefault.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbDefault.setCheckable(True)
|
||
|
|
self.tbDefault.setObjectName("tbDefault")
|
||
|
|
self.buttonGroup.addButton(self.tbDefault)
|
||
|
|
self.vl1.addWidget(self.tbDefault)
|
||
|
|
self.tbDebug = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbDebug.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbDebug.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbDebug.setFont(font)
|
||
|
|
self.tbDebug.setToolTip("")
|
||
|
|
self.tbDebug.setIcon(icon9)
|
||
|
|
self.tbDebug.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbDebug.setCheckable(True)
|
||
|
|
self.tbDebug.setObjectName("tbDebug")
|
||
|
|
self.buttonGroup.addButton(self.tbDebug)
|
||
|
|
self.vl1.addWidget(self.tbDebug)
|
||
|
|
self.tbUser = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbUser.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbUser.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbUser.setFont(font)
|
||
|
|
self.tbUser.setToolTip("")
|
||
|
|
icon11 = QtGui.QIcon()
|
||
|
|
icon11.addPixmap(QtGui.QPixmap(":/resource/user.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbUser.setIcon(icon11)
|
||
|
|
self.tbUser.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbUser.setCheckable(True)
|
||
|
|
self.tbUser.setObjectName("tbUser")
|
||
|
|
self.buttonGroup.addButton(self.tbUser)
|
||
|
|
self.vl1.addWidget(self.tbUser)
|
||
|
|
self.tbAbout = QtWidgets.QPushButton(parent=self.leftFrame)
|
||
|
|
self.tbAbout.setMinimumSize(QtCore.QSize(110, 35))
|
||
|
|
self.tbAbout.setMaximumSize(QtCore.QSize(110, 35))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(12)
|
||
|
|
self.tbAbout.setFont(font)
|
||
|
|
self.tbAbout.setToolTip("")
|
||
|
|
self.tbAbout.setStyleSheet("\n"
|
||
|
|
" QWidget {\n"
|
||
|
|
" \n"
|
||
|
|
" background-color: #007EFF; /* 子部件的样式 */\n"
|
||
|
|
"\n"
|
||
|
|
" } \n"
|
||
|
|
" QWidget QPushButton {\n"
|
||
|
|
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
|
||
|
|
" \n"
|
||
|
|
" color: rgb(255, 255, 255);\n"
|
||
|
|
" border-radius: 2px;\n"
|
||
|
|
" }\n"
|
||
|
|
"\n"
|
||
|
|
" QWidget QPushButton:pressed {\n"
|
||
|
|
" subcontrol-origin: content;\n"
|
||
|
|
" background-color: #0969CB ; /* 按钮按下时的背景颜色为红色 */\n"
|
||
|
|
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
|
||
|
|
"}\n"
|
||
|
|
"")
|
||
|
|
self.tbAbout.setIcon(icon9)
|
||
|
|
self.tbAbout.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbAbout.setCheckable(True)
|
||
|
|
self.tbAbout.setObjectName("tbAbout")
|
||
|
|
self.vl1.addWidget(self.tbAbout)
|
||
|
|
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||
|
|
self.vl1.addItem(spacerItem2)
|
||
|
|
self.verticalLayout_8.addLayout(self.vl1)
|
||
|
|
self.horizontalLayout_4.addWidget(self.leftFrame)
|
||
|
|
self.widget_2 = QtWidgets.QWidget(parent=self.page_main)
|
||
|
|
self.widget_2.setObjectName("widget_2")
|
||
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget_2)
|
||
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout.setSpacing(0)
|
||
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
|
self.centerWidget = QtWidgets.QWidget(parent=self.widget_2)
|
||
|
|
self.centerWidget.setObjectName("centerWidget")
|
||
|
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.centerWidget)
|
||
|
|
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_5.setSpacing(2)
|
||
|
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||
|
|
self.splitter = QtWidgets.QSplitter(parent=self.centerWidget)
|
||
|
|
self.splitter.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||
|
|
self.splitter.setHandleWidth(1)
|
||
|
|
self.splitter.setObjectName("splitter")
|
||
|
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=self.splitter)
|
||
|
|
self.stackedWidget.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.stackedWidget.setObjectName("stackedWidget")
|
||
|
|
self.page_model = QtWidgets.QWidget()
|
||
|
|
self.page_model.setObjectName("page_model")
|
||
|
|
self.verticalLayout_devModel = QtWidgets.QVBoxLayout(self.page_model)
|
||
|
|
self.verticalLayout_devModel.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_devModel.setObjectName("verticalLayout_devModel")
|
||
|
|
self.stackedWidget.addWidget(self.page_model)
|
||
|
|
self.page_dev = QtWidgets.QWidget()
|
||
|
|
self.page_dev.setObjectName("page_dev")
|
||
|
|
self.verticalLayout_device = QtWidgets.QVBoxLayout(self.page_dev)
|
||
|
|
self.verticalLayout_device.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_device.setObjectName("verticalLayout_device")
|
||
|
|
self.stackedWidget.addWidget(self.page_dev)
|
||
|
|
self.page_task = QtWidgets.QWidget()
|
||
|
|
self.page_task.setObjectName("page_task")
|
||
|
|
self.verticalLayout_task = QtWidgets.QVBoxLayout(self.page_task)
|
||
|
|
self.verticalLayout_task.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_task.setSpacing(0)
|
||
|
|
self.verticalLayout_task.setObjectName("verticalLayout_task")
|
||
|
|
self.stackedWidget.addWidget(self.page_task)
|
||
|
|
self.page_dataSync = QtWidgets.QWidget()
|
||
|
|
self.page_dataSync.setObjectName("page_dataSync")
|
||
|
|
self.verticalLayout_dataSync = QtWidgets.QVBoxLayout(self.page_dataSync)
|
||
|
|
self.verticalLayout_dataSync.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_dataSync.setSpacing(0)
|
||
|
|
self.verticalLayout_dataSync.setObjectName("verticalLayout_dataSync")
|
||
|
|
self.stackedWidget.addWidget(self.page_dataSync)
|
||
|
|
self.page_quick = QtWidgets.QWidget()
|
||
|
|
self.page_quick.setObjectName("page_quick")
|
||
|
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.page_quick)
|
||
|
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||
|
|
self.quickStackView = QtQuickWidgets.QQuickWidget(parent=self.page_quick)
|
||
|
|
self.quickStackView.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.quickStackView.setResizeMode(QtQuickWidgets.QQuickWidget.ResizeMode.SizeRootObjectToView)
|
||
|
|
self.quickStackView.setObjectName("quickStackView")
|
||
|
|
self.verticalLayout_3.addWidget(self.quickStackView)
|
||
|
|
self.stackedWidget.addWidget(self.page_quick)
|
||
|
|
self.page_setting = QtWidgets.QWidget()
|
||
|
|
self.page_setting.setObjectName("page_setting")
|
||
|
|
self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.page_setting)
|
||
|
|
self.verticalLayout_13.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_13.setObjectName("verticalLayout_13")
|
||
|
|
self.quickSetting = QtQuickWidgets.QQuickWidget(parent=self.page_setting)
|
||
|
|
self.quickSetting.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.quickSetting.setResizeMode(QtQuickWidgets.QQuickWidget.ResizeMode.SizeRootObjectToView)
|
||
|
|
self.quickSetting.setObjectName("quickSetting")
|
||
|
|
self.verticalLayout_13.addWidget(self.quickSetting)
|
||
|
|
self.stackedWidget.addWidget(self.page_setting)
|
||
|
|
self.page_pro = QtWidgets.QWidget()
|
||
|
|
self.page_pro.setObjectName("page_pro")
|
||
|
|
self.verticalLayout_pro = QtWidgets.QVBoxLayout(self.page_pro)
|
||
|
|
self.verticalLayout_pro.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_pro.setObjectName("verticalLayout_pro")
|
||
|
|
self.stackedWidget.addWidget(self.page_pro)
|
||
|
|
self.page_user = QtWidgets.QWidget()
|
||
|
|
self.page_user.setObjectName("page_user")
|
||
|
|
self.verticalLayout_user = QtWidgets.QVBoxLayout(self.page_user)
|
||
|
|
self.verticalLayout_user.setContentsMargins(0, 2, 0, 0)
|
||
|
|
self.verticalLayout_user.setObjectName("verticalLayout_user")
|
||
|
|
self.stackedWidget.addWidget(self.page_user)
|
||
|
|
self.pageDebug = QtWidgets.QWidget()
|
||
|
|
self.pageDebug.setObjectName("pageDebug")
|
||
|
|
self.verticalLayout_Debug = QtWidgets.QVBoxLayout(self.pageDebug)
|
||
|
|
self.verticalLayout_Debug.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_Debug.setObjectName("verticalLayout_Debug")
|
||
|
|
self.quickDebug = QtQuickWidgets.QQuickWidget(parent=self.pageDebug)
|
||
|
|
self.quickDebug.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.quickDebug.setResizeMode(QtQuickWidgets.QQuickWidget.ResizeMode.SizeRootObjectToView)
|
||
|
|
self.quickDebug.setObjectName("quickDebug")
|
||
|
|
self.verticalLayout_Debug.addWidget(self.quickDebug)
|
||
|
|
self.stackedWidget.addWidget(self.pageDebug)
|
||
|
|
self.logWidget = QtWidgets.QWidget(parent=self.splitter)
|
||
|
|
self.logWidget.setMinimumSize(QtCore.QSize(200, 0))
|
||
|
|
self.logWidget.setMaximumSize(QtCore.QSize(900, 16777215))
|
||
|
|
self.logWidget.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
|
||
|
|
self.logWidget.setObjectName("logWidget")
|
||
|
|
self.verticalLayout_log = QtWidgets.QVBoxLayout(self.logWidget)
|
||
|
|
self.verticalLayout_log.setContentsMargins(0, 0, 0, 0)
|
||
|
|
self.verticalLayout_log.setSpacing(0)
|
||
|
|
self.verticalLayout_log.setObjectName("verticalLayout_log")
|
||
|
|
self.verticalLayout_5.addWidget(self.splitter)
|
||
|
|
self.verticalLayout.addWidget(self.centerWidget)
|
||
|
|
self.faStatusBar = QtWidgets.QFrame(parent=self.widget_2)
|
||
|
|
self.faStatusBar.setMinimumSize(QtCore.QSize(0, 40))
|
||
|
|
self.faStatusBar.setMaximumSize(QtCore.QSize(16777215, 40))
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("微软雅黑")
|
||
|
|
font.setPointSize(12)
|
||
|
|
font.setBold(True)
|
||
|
|
font.setWeight(75)
|
||
|
|
self.faStatusBar.setFont(font)
|
||
|
|
self.faStatusBar.setStyleSheet("QWidget{background-color: rgb(255, 255, 255);}\n"
|
||
|
|
" QWidget QPushButton {\n"
|
||
|
|
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
|
||
|
|
" \n"
|
||
|
|
" color: rgb(255, 255, 255);\n"
|
||
|
|
" border-radius: 14px;\n"
|
||
|
|
" }\n"
|
||
|
|
"\n"
|
||
|
|
"QWidget QPushButton:hover {\n"
|
||
|
|
" subcontrol-origin: content;\n"
|
||
|
|
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
|
||
|
|
" border-radius: 14px; /* 鼠标悬停时的边框为红色实线 */\n"
|
||
|
|
"}\n"
|
||
|
|
" QWidget QPushButton:pressed {\n"
|
||
|
|
" subcontrol-origin: content;\n"
|
||
|
|
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
|
||
|
|
" border-radius: 14px; /* 按钮按下时的边框为红色实线 */\n"
|
||
|
|
"}")
|
||
|
|
self.faStatusBar.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
|
||
|
|
self.faStatusBar.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
|
||
|
|
self.faStatusBar.setObjectName("faStatusBar")
|
||
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.faStatusBar)
|
||
|
|
self.horizontalLayout_2.setContentsMargins(9, 0, 9, 0)
|
||
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||
|
|
self.tblogOut = QtWidgets.QPushButton(parent=self.faStatusBar)
|
||
|
|
self.tblogOut.setMinimumSize(QtCore.QSize(28, 28))
|
||
|
|
self.tblogOut.setMaximumSize(QtCore.QSize(28, 28))
|
||
|
|
self.tblogOut.setStyleSheet("")
|
||
|
|
self.tblogOut.setText("")
|
||
|
|
icon12 = QtGui.QIcon()
|
||
|
|
icon12.addPixmap(QtGui.QPixmap(":/resource/logout.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tblogOut.setIcon(icon12)
|
||
|
|
self.tblogOut.setIconSize(QtCore.QSize(27, 27))
|
||
|
|
self.tblogOut.setObjectName("tblogOut")
|
||
|
|
self.horizontalLayout_2.addWidget(self.tblogOut)
|
||
|
|
self.label_5 = QtWidgets.QLabel(parent=self.faStatusBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(11)
|
||
|
|
self.label_5.setFont(font)
|
||
|
|
self.label_5.setObjectName("label_5")
|
||
|
|
self.horizontalLayout_2.addWidget(self.label_5)
|
||
|
|
self.lbCurrentUserName = QtWidgets.QLabel(parent=self.faStatusBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(11)
|
||
|
|
self.lbCurrentUserName.setFont(font)
|
||
|
|
self.lbCurrentUserName.setText("")
|
||
|
|
self.lbCurrentUserName.setObjectName("lbCurrentUserName")
|
||
|
|
self.horizontalLayout_2.addWidget(self.lbCurrentUserName)
|
||
|
|
self.label = QtWidgets.QLabel(parent=self.faStatusBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(11)
|
||
|
|
self.label.setFont(font)
|
||
|
|
self.label.setObjectName("label")
|
||
|
|
self.horizontalLayout_2.addWidget(self.label)
|
||
|
|
self.lbCurrentPro = QtWidgets.QLabel(parent=self.faStatusBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(11)
|
||
|
|
self.lbCurrentPro.setFont(font)
|
||
|
|
self.lbCurrentPro.setText("")
|
||
|
|
self.lbCurrentPro.setObjectName("lbCurrentPro")
|
||
|
|
self.horizontalLayout_2.addWidget(self.lbCurrentPro)
|
||
|
|
spacerItem3 = QtWidgets.QSpacerItem(1798, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
|
self.horizontalLayout_2.addItem(spacerItem3)
|
||
|
|
self.tbTaskList = QtWidgets.QPushButton(parent=self.faStatusBar)
|
||
|
|
self.tbTaskList.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbTaskList.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbTaskList.setText("")
|
||
|
|
icon13 = QtGui.QIcon()
|
||
|
|
icon13.addPixmap(QtGui.QPixmap(":/resource/queue.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbTaskList.setIcon(icon13)
|
||
|
|
self.tbTaskList.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbTaskList.setObjectName("tbTaskList")
|
||
|
|
self.horizontalLayout_2.addWidget(self.tbTaskList)
|
||
|
|
spacerItem4 = QtWidgets.QSpacerItem(1798, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
|
self.horizontalLayout_2.addItem(spacerItem4)
|
||
|
|
self.tbStopAll = QtWidgets.QPushButton(parent=self.faStatusBar)
|
||
|
|
self.tbStopAll.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbStopAll.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbStopAll.setText("")
|
||
|
|
icon14 = QtGui.QIcon()
|
||
|
|
icon14.addPixmap(QtGui.QPixmap(":/resource/stop.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbStopAll.setIcon(icon14)
|
||
|
|
self.tbStopAll.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbStopAll.setObjectName("tbStopAll")
|
||
|
|
self.horizontalLayout_2.addWidget(self.tbStopAll)
|
||
|
|
self.tbLog = QtWidgets.QPushButton(parent=self.faStatusBar)
|
||
|
|
self.tbLog.setMinimumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbLog.setMaximumSize(QtCore.QSize(30, 30))
|
||
|
|
self.tbLog.setText("")
|
||
|
|
icon15 = QtGui.QIcon()
|
||
|
|
icon15.addPixmap(QtGui.QPixmap(":/resource/log.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
self.tbLog.setIcon(icon15)
|
||
|
|
self.tbLog.setIconSize(QtCore.QSize(20, 20))
|
||
|
|
self.tbLog.setObjectName("tbLog")
|
||
|
|
self.horizontalLayout_2.addWidget(self.tbLog)
|
||
|
|
self.lbDateTime = QtWidgets.QLabel(parent=self.faStatusBar)
|
||
|
|
font = QtGui.QFont()
|
||
|
|
font.setFamily("黑体")
|
||
|
|
font.setPointSize(11)
|
||
|
|
self.lbDateTime.setFont(font)
|
||
|
|
self.lbDateTime.setText("")
|
||
|
|
self.lbDateTime.setObjectName("lbDateTime")
|
||
|
|
self.horizontalLayout_2.addWidget(self.lbDateTime)
|
||
|
|
self.verticalLayout.addWidget(self.faStatusBar)
|
||
|
|
self.horizontalLayout_4.addWidget(self.widget_2)
|
||
|
|
self.stackedWidgetMain.addWidget(self.page_main)
|
||
|
|
self.verticalLayout_2.addWidget(self.stackedWidgetMain)
|
||
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
||
|
|
|
||
|
|
self.retranslateUi(MainWindow)
|
||
|
|
self.stackedWidgetMain.setCurrentIndex(0)
|
||
|
|
self.stackedWidget.setCurrentIndex(8)
|
||
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||
|
|
|
||
|
|
def retranslateUi(self, MainWindow):
|
||
|
|
_translate = QtCore.QCoreApplication.translate
|
||
|
|
self.tbModel.setText(_translate("MainWindow", "模型管理"))
|
||
|
|
self.tbDev.setText(_translate("MainWindow", "设备管理"))
|
||
|
|
self.tbTask.setText(_translate("MainWindow", "任务管理"))
|
||
|
|
self.tbDataSync.setText(_translate("MainWindow", "数据同步"))
|
||
|
|
self.tbAppStore.setText(_translate("MainWindow", "应用中心"))
|
||
|
|
self.tbProject.setText(_translate("MainWindow", "工程管理"))
|
||
|
|
self.tbSetting.setText(_translate("MainWindow", "系统设置"))
|
||
|
|
self.tbDefault.setText(_translate("MainWindow", "默认按钮"))
|
||
|
|
self.tbDebug.setText(_translate("MainWindow", "调试模式"))
|
||
|
|
self.tbUser.setText(_translate("MainWindow", "用户管理"))
|
||
|
|
self.tbAbout.setText(_translate("MainWindow", "关于软件"))
|
||
|
|
self.label_5.setText(_translate("MainWindow", "当前用户:"))
|
||
|
|
self.label.setText(_translate("MainWindow", "当前工程:"))
|
||
|
|
from PyQt6 import QtQuickWidgets
|