Ai
1 Star 0 Fork 0

程序员马工/WindowFramLess

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
window_ui.py 8.03 KB
一键复制 编辑 原始数据 按行查看 历史
程序员马工 提交于 2023-05-15 17:14 +08:00 . first commit
# -*- 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cxy-magong/window-fram-less.git
git@gitee.com:cxy-magong/window-fram-less.git
cxy-magong
window-fram-less
WindowFramLess
master

搜索帮助