TG-PlatformPlus/ui/Ui_userForm.py

185 lines
8.6 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\userForm.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_userForm(object):
def setupUi(self, userForm):
userForm.setObjectName("userForm")
userForm.resize(852, 653)
userForm.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(userForm)
self.verticalLayout_2.setContentsMargins(10, 12, 10, 10)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.widget = QtWidgets.QWidget(parent=userForm)
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.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
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.widget)
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)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.pbCreateUser = QtWidgets.QPushButton(parent=self.widget)
self.pbCreateUser.setMinimumSize(QtCore.QSize(21, 21))
self.pbCreateUser.setMaximumSize(QtCore.QSize(21, 21))
self.pbCreateUser.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/resource/add.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbCreateUser.setIcon(icon)
self.pbCreateUser.setIconSize(QtCore.QSize(21, 21))
self.pbCreateUser.setObjectName("pbCreateUser")
self.horizontalLayout_2.addWidget(self.pbCreateUser)
self.pbDeleteUser = QtWidgets.QPushButton(parent=self.widget)
self.pbDeleteUser.setMinimumSize(QtCore.QSize(21, 21))
self.pbDeleteUser.setMaximumSize(QtCore.QSize(21, 21))
self.pbDeleteUser.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/resource/remove.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbDeleteUser.setIcon(icon1)
self.pbDeleteUser.setIconSize(QtCore.QSize(21, 21))
self.pbDeleteUser.setObjectName("pbDeleteUser")
self.horizontalLayout_2.addWidget(self.pbDeleteUser)
self.pbEditUser = QtWidgets.QPushButton(parent=self.widget)
self.pbEditUser.setMinimumSize(QtCore.QSize(21, 21))
self.pbEditUser.setMaximumSize(QtCore.QSize(21, 21))
self.pbEditUser.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/resource/edit.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbEditUser.setIcon(icon2)
self.pbEditUser.setIconSize(QtCore.QSize(21, 21))
self.pbEditUser.setObjectName("pbEditUser")
self.horizontalLayout_2.addWidget(self.pbEditUser)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.tableViewUser = QtWidgets.QTableView(parent=self.widget)
self.tableViewUser.setMinimumSize(QtCore.QSize(0, 0))
self.tableViewUser.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.tableViewUser.setToolTip("")
self.tableViewUser.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"
" text-align: center; /* 让表头文本居中显示 */\n"
"\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"QScrollBar:vertical {\n"
" background: #BFBFBF; /* 设置垂直滚动条的背景颜色为浅灰色 */\n"
" width: 3px; /* 设置滚动条的宽度 */\n"
" margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */\n"
"}\n"
"\n"
"QScrollBar::handle:vertical {\n"
" background: #c0c0c0; /* 设置滚动条拖动手柄的背景颜色为灰色 */\n"
" min-height: 34px; /* 设置滚动条拖动手柄的最小高度 */\n"
"}\n"
"\n"
"QScrollBar::add-line:vertical {\n"
" height: 0px; /* 设置垂直滚动条向下箭头的高度为0即不显示 */\n"
"}\n"
"\n"
"QScrollBar::sub-line:vertical {\n"
" height: 0px; /* 设置垂直滚动条向上箭头的高度为0即不显示 */\n"
"}\n"
" QScrollBar:horizontal {\n"
" background: #BFBFBF; /* 设置横向滚动条的背景颜色为浅灰色 */\n"
" height: 5px; /* 设置滚动条的高度 */\n"
" margin: 0px 0px 0px 0px; /* 设置滚动条的外边距 */\n"
" }\n"
" QScrollBar::handle:horizontal {\n"
" background: #c0c0c0; /* 设置滚动条拖动手柄的背景颜色为灰色 */\n"
" min-width: 34px; /* 设置滚动条拖动手柄的最小宽度 */\n"
" }\n"
" QScrollBar::add-line:horizontal {\n"
" width: 0px; /* 设置横向滚动条向右箭头的宽度为0即不显示 */\n"
" }\n"
" QScrollBar::sub-line:horizontal {\n"
" width: 0px; /* 设置横向滚动条向左箭头的宽度为0即不显示 */\n"
" }")
self.tableViewUser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
self.tableViewUser.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableViewUser.setDragEnabled(True)
self.tableViewUser.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.NoDragDrop)
self.tableViewUser.setAlternatingRowColors(True)
self.tableViewUser.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
self.tableViewUser.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewUser.setShowGrid(False)
self.tableViewUser.setObjectName("tableViewUser")
self.tableViewUser.verticalHeader().setVisible(False)
self.tableViewUser.verticalHeader().setHighlightSections(True)
self.verticalLayout.addWidget(self.tableViewUser)
self.verticalLayout_2.addWidget(self.widget)
self.retranslateUi(userForm)
QtCore.QMetaObject.connectSlotsByName(userForm)
def retranslateUi(self, userForm):
_translate = QtCore.QCoreApplication.translate
userForm.setWindowTitle(_translate("userForm", "Form"))
self.label_2.setText(_translate("userForm", "用户管理"))
self.pbCreateUser.setToolTip(_translate("userForm", "创建设备模型"))
self.pbDeleteUser.setToolTip(_translate("userForm", "删除设备模型"))
self.pbEditUser.setToolTip(_translate("userForm", "编辑设备模型"))