代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'window.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
import res_rc
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(684, 556)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.gridLayout = QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.frame_2 = QFrame(self.centralwidget)
self.frame_2.setObjectName(u"frame_2")
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
self.frame_2.setSizePolicy(sizePolicy)
self.frame_2.setMinimumSize(QSize(0, 65))
self.frame_2.setMaximumSize(QSize(16777215, 65))
self.frame_2.setStyleSheet(u"QFrame {\n"
" background-color: rgb(247,247,247);\n"
"}\n"
"#frame_2 {\n"
" border-bottom-width: 1px;\n"
" border-bottom-color: #D6D6D6;\n"
" /*border-bottom-color: red;*/\n"
" border-bottom-style:solid;\n"
"}")
self.frame_2.setFrameShape(QFrame.NoFrame)
self.frame_2.setFrameShadow(QFrame.Raised)
self.frame_2.setLineWidth(0)
self.gridLayout_8 = QGridLayout(self.frame_2)
self.gridLayout_8.setObjectName(u"gridLayout_8")
self.gridLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setSpacing(0)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.pushButton_2 = QPushButton(self.frame_2)
self.pushButton_2.setObjectName(u"pushButton_2")
self.pushButton_2.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_2.setStyleSheet(u"QPushButton {\n"
" border:none;\n"
" letter-spacing: 0px;\n"
" font-size: 20px;\n"
" margin-left: 6px\n"
"}")
self.horizontalLayout_5.addWidget(self.pushButton_2)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(self.horizontalSpacer)
self.verticalLayout_5 = QVBoxLayout()
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout_6 = QHBoxLayout()
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
self.verticalLayout_5.addLayout(self.horizontalLayout_6)
self.horizontalLayout_5.addLayout(self.verticalLayout_5)
self.gridLayout_7 = QGridLayout()
self.gridLayout_7.setObjectName(u"gridLayout_7")
self.gridLayout_7.setHorizontalSpacing(5)
self.gridLayout_7.setVerticalSpacing(0)
self.closeButton = QPushButton(self.frame_2)
self.closeButton.setObjectName(u"closeButton")
self.closeButton.setMinimumSize(QSize(26, 20))
self.closeButton.setCursor(QCursor(Qt.PointingHandCursor))
self.closeButton.setStyleSheet(u"QPushButton{border:none;image: url(:/icon/resource/close.svg)}\n"
"QPushButton:hover{image: url(:/icon/resource/close-hover.svg);background-color:#FB7373;\n"
"}")
self.closeButton.setIconSize(QSize(24, 20))
self.closeButton.setCheckable(False)
self.gridLayout_7.addWidget(self.closeButton, 0, 4, 1, 1)
self.verticalSpacer_8 = QSpacerItem(20, 35, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.gridLayout_7.addItem(self.verticalSpacer_8, 2, 4, 1, 1)
self.moreButton = QPushButton(self.frame_2)
self.moreButton.setObjectName(u"moreButton")
self.moreButton.setMinimumSize(QSize(26, 19))
self.moreButton.setCursor(QCursor(Qt.PointingHandCursor))
self.moreButton.setStyleSheet(u"QPushButton{border:none;image: url(:/icon/resource/more-fill.svg);}\n"
"QPushButton:hover{border:none;image: url(:/icon/resource/more-hover.svg);}")
self.moreButton.setIconSize(QSize(24, 20))
self.moreButton.setCheckable(False)
self.gridLayout_7.addWidget(self.moreButton, 3, 4, 1, 1)
self.winMaxButton = QPushButton(self.frame_2)
self.winMaxButton.setObjectName(u"winMaxButton")
self.winMaxButton.setMinimumSize(QSize(26, 17))
self.winMaxButton.setCursor(QCursor(Qt.PointingHandCursor))
self.winMaxButton.setStyleSheet(u"QPushButton{border:none;image: url(:/icon/resource/checkbox.svg); padding:2px}\n"
"\n"
"QPushButton:hover{background-color:#E2E2E2;padding:2px\n"
"}\n"
"\n"
"QPushButton:unchecked{image: url(:/icon/resource/checkbox.svg);}\n"
"\n"
"QPushButton:checked{image: url(:/icon/resource/checkbox-multiple.svg);}")
self.winMaxButton.setIconSize(QSize(24, 20))
self.winMaxButton.setCheckable(True)
self.gridLayout_7.addWidget(self.winMaxButton, 0, 2, 1, 1)
self.winfoButton = QPushButton(self.frame_2)
self.winfoButton.setObjectName(u"winfoButton")
self.winfoButton.setMinimumSize(QSize(26, 17))
self.winfoButton.setCursor(QCursor(Qt.PointingHandCursor))
self.winfoButton.setStyleSheet(u"QPushButton{border:none;image: url(:/icon/resource/winfo.svg);}\n"
"\n"
"\n"
"QPushButton:hover{background-color:#E2E2E2;}\n"
"")
self.winfoButton.setIconSize(QSize(24, 20))
self.winfoButton.setCheckable(False)
self.gridLayout_7.addWidget(self.winfoButton, 0, 1, 1, 1)
self.pushPinButton = QPushButton(self.frame_2)
self.pushPinButton.setObjectName(u"pushPinButton")
self.pushPinButton.setMinimumSize(QSize(26, 18))
self.pushPinButton.setCursor(QCursor(Qt.PointingHandCursor))
self.pushPinButton.setStyleSheet(u"QPushButton{border:none;image: url(:/icon/resource/pushpin-unchecked.svg);}\n"
"\n"
"\n"
"QPushButton:hover{background-color:#E2E2E2;}\n"
"\n"
"QPushButton:unchecked{image: url(:/icon/resource/pushpin-unchecked.svg);}\n"
"QPushButton:checked{image: url(:/icon/resource/pushpin-checked.svg);background-color:#E2E2E2;}\n"
"")
self.pushPinButton.setIconSize(QSize(45, 53))
self.pushPinButton.setCheckable(True)
self.gridLayout_7.addWidget(self.pushPinButton, 0, 0, 1, 1)
self.verticalSpacer_9 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.gridLayout_7.addItem(self.verticalSpacer_9, 4, 4, 1, 1)
self.horizontalLayout_5.addLayout(self.gridLayout_7)
self.gridLayout_8.addLayout(self.horizontalLayout_5, 0, 0, 1, 1)
self.gridLayout.addWidget(self.frame_2, 0, 0, 1, 1)
self.textBrowser_2 = QTextBrowser(self.centralwidget)
self.textBrowser_2.setObjectName(u"textBrowser_2")
self.textBrowser_2.setStyleSheet(u"*{margin:0px;}")
self.textBrowser_2.setFrameShape(QFrame.NoFrame)
self.gridLayout.addWidget(self.textBrowser_2, 1, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"\u6587\u4ef6\u4f20\u8f93\u52a9\u624b", None))
self.closeButton.setText("")
self.moreButton.setText("")
self.winMaxButton.setText("")
self.winfoButton.setText("")
self.pushPinButton.setText("")
# retranslateUi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。