3 Star 15 Fork 6

小余NO.1/pyqt5重定义边框

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ui.py 5.46 KB
一键复制 编辑 原始数据 按行查看 历史
小余NO.1 提交于 2019-10-02 18:46 . up
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(839, 593)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(30, 19, 781, 21))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
self.widget.setSizePolicy(sizePolicy)
self.widget.setObjectName("widget")
self.pushButton_2 = QtWidgets.QPushButton(self.widget)
self.pushButton_2.setGeometry(QtCore.QRect(700, 0, 31, 21))
self.pushButton_2.setText("")
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton = QtWidgets.QPushButton(self.widget)
self.pushButton.setGeometry(QtCore.QRect(740, 0, 31, 21))
self.pushButton.setText("")
self.pushButton.setObjectName("pushButton")
self.pushButton_3 = QtWidgets.QPushButton(self.widget)
self.pushButton_3.setGeometry(QtCore.QRect(0, 0, 31, 21))
self.pushButton_3.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("img/btn_set_normal.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_3.setIcon(icon)
self.pushButton_3.setObjectName("pushButton_3")
self.label = QtWidgets.QLabel(self.widget)
self.label.setGeometry(QtCore.QRect(30, 0, 61, 21))
self.label.setObjectName("label")
self.widget_2 = QtWidgets.QWidget(self.centralwidget)
self.widget_2.setGeometry(QtCore.QRect(30, 40, 781, 491))
self.widget_2.setObjectName("widget_2")
self.pushButton_4 = QtWidgets.QPushButton(self.widget_2)
self.pushButton_4.setGeometry(QtCore.QRect(60, 90, 75, 23))
self.pushButton_4.setObjectName("pushButton_4")
self.groupBox = QtWidgets.QGroupBox(self.widget_2)
self.groupBox.setGeometry(QtCore.QRect(320, 100, 120, 80))
self.groupBox.setObjectName("groupBox")
self.lineEdit = QtWidgets.QLineEdit(self.widget_2)
self.lineEdit.setGeometry(QtCore.QRect(50, 220, 113, 20))
self.lineEdit.setObjectName("lineEdit")
self.tabWidget = QtWidgets.QTabWidget(self.widget_2)
self.tabWidget.setGeometry(QtCore.QRect(370, 220, 127, 80))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.tabWidget.addTab(self.tab_2, "")
self.progressBar = QtWidgets.QProgressBar(self.widget_2)
self.progressBar.setGeometry(QtCore.QRect(330, 400, 118, 23))
self.progressBar.setProperty("value", 24)
self.progressBar.setObjectName("progressBar")
self.checkBox = QtWidgets.QCheckBox(self.widget_2)
self.checkBox.setGeometry(QtCore.QRect(80, 140, 71, 16))
self.checkBox.setObjectName("checkBox")
self.radioButton = QtWidgets.QRadioButton(self.widget_2)
self.radioButton.setGeometry(QtCore.QRect(70, 180, 89, 16))
self.radioButton.setObjectName("radioButton")
self.verticalScrollBar = QtWidgets.QScrollBar(self.widget_2)
self.verticalScrollBar.setGeometry(QtCore.QRect(240, 170, 16, 160))
self.verticalScrollBar.setOrientation(QtCore.Qt.Vertical)
self.verticalScrollBar.setObjectName("verticalScrollBar")
self.treeWidget = QtWidgets.QTreeWidget(self.widget_2)
self.treeWidget.setGeometry(QtCore.QRect(510, 230, 256, 192))
self.treeWidget.setObjectName("treeWidget")
self.treeWidget.headerItem().setText(0, "1")
self.widget_3 = QtWidgets.QWidget(self.centralwidget)
self.widget_3.setGeometry(QtCore.QRect(30, 530, 781, 16))
self.widget_3.setObjectName("widget_3")
self.widget_2.raise_()
self.widget.raise_()
self.widget_3.raise_()
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 839, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "PYQT测试"))
self.pushButton_4.setText(_translate("MainWindow", "PushButton"))
self.groupBox.setTitle(_translate("MainWindow", "GroupBox"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))
self.checkBox.setText(_translate("MainWindow", "CheckBox"))
self.radioButton.setText(_translate("MainWindow", "RadioButton"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yuyangwei/pyqt5zhongdingyibiankuang.git
[email protected]:yuyangwei/pyqt5zhongdingyibiankuang.git
yuyangwei
pyqt5zhongdingyibiankuang
pyqt5重定义边框
master

搜索帮助