1 Star 0 Fork 1

soilbean/PyQt6_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
demo.py 5.59 KB
一键复制 编辑 原始数据 按行查看 历史
hg_guanhongyuan 提交于 2024-05-31 15:49 . 531
# Form implementation generated from reading ui file 'demo.ui'
#
# Created by: PyQt6 UI code generator 6.4.2
#
# 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(979, 639)
font = QtGui.QFont()
font.setPointSize(25)
font.setItalic(False)
MainWindow.setFont(font)
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.widget = QtWidgets.QWidget(parent=self.centralwidget)
self.widget.setGeometry(QtCore.QRect(0, 0, 980, 640))
self.widget.setStyleSheet("")
self.widget.setObjectName("widget")
self.frame = QtWidgets.QFrame(parent=self.widget)
self.frame.setGeometry(QtCore.QRect(90, 30, 891, 611))
self.frame.setAutoFillBackground(False)
self.frame.setStyleSheet("")
self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame.setObjectName("frame")
self.textEdit = QtWidgets.QTextEdit(parent=self.frame)
self.textEdit.setGeometry(QtCore.QRect(30, 450, 121, 71))
self.textEdit.setStyleSheet("background-color: rgb(255, 255, 255);")
self.textEdit.setObjectName("textEdit")
self.pushButton_2 = QtWidgets.QPushButton(parent=self.frame)
self.pushButton_2.setGeometry(QtCore.QRect(30, 540, 71, 31))
font = QtGui.QFont()
font.setPointSize(13)
font.setItalic(False)
self.pushButton_2.setFont(font)
self.pushButton_2.setStyleSheet("background-color: rgb(218, 218, 218);\n"
"border: none;")
self.pushButton_2.setObjectName("pushButton_2")
self.widget_2 = QtWidgets.QWidget(parent=self.frame)
self.widget_2.setGeometry(QtCore.QRect(230, 450, 581, 71))
self.widget_2.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"")
self.widget_2.setObjectName("widget_2")
self.label = QtWidgets.QLabel(parent=self.widget_2)
self.label.setGeometry(QtCore.QRect(10, 10, 401, 51))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(parent=self.frame)
self.label_2.setGeometry(QtCore.QRect(30, 260, 381, 71))
font = QtGui.QFont()
font.setPointSize(25)
font.setBold(True)
font.setItalic(False)
self.label_2.setFont(font)
self.label_2.setText("")
self.label_2.setObjectName("label_2")
self.frame_2 = QtWidgets.QFrame(parent=self.widget)
self.frame_2.setGeometry(QtCore.QRect(0, 30, 91, 611))
self.frame_2.setStyleSheet("background-color: rgb(15, 15, 15);")
self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame_2.setObjectName("frame_2")
self.frame_3 = QtWidgets.QFrame(parent=self.widget)
self.frame_3.setGeometry(QtCore.QRect(0, 0, 981, 32))
self.frame_3.setStyleSheet("background-color: rgb(0, 0, 0);\n"
"border-bottom: 1px solid white;")
self.frame_3.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame_3.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame_3.setObjectName("frame_3")
self.pushButton_5 = QtWidgets.QPushButton(parent=self.frame_3)
self.pushButton_5.setEnabled(True)
self.pushButton_5.setGeometry(QtCore.QRect(920, 0, 31, 31))
font = QtGui.QFont()
font.setPointSize(25)
font.setBold(True)
font.setItalic(False)
self.pushButton_5.setFont(font)
self.pushButton_5.setStyleSheet("color: rgb(255, 255, 255);\n"
"border: none;\n"
"\n"
"\n"
"")
self.pushButton_5.setObjectName("pushButton_5")
self.pushButton_3 = QtWidgets.QPushButton(parent=self.frame_3)
self.pushButton_3.setEnabled(True)
self.pushButton_3.setGeometry(QtCore.QRect(950, 0, 31, 31))
font = QtGui.QFont()
font.setPointSize(15)
font.setBold(True)
font.setItalic(False)
self.pushButton_3.setFont(font)
self.pushButton_3.setStyleSheet("color: rgb(255, 255, 255);\n"
"\n"
"\n"
"")
self.pushButton_3.setObjectName("pushButton_3")
self.label_3 = QtWidgets.QLabel(parent=self.frame_3)
self.label_3.setGeometry(QtCore.QRect(91, 0, 31, 31))
font = QtGui.QFont()
font.setPointSize(10)
font.setItalic(False)
self.label_3.setFont(font)
self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);\n"
"border: none;")
self.label_3.setObjectName("label_3")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.pushButton_3.clicked.connect(MainWindow.close) # type: ignore
self.pushButton_5.clicked.connect(MainWindow.showMinimized) # type: ignore
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton_2.setText(_translate("MainWindow", "启动"))
self.label.setText(_translate("MainWindow", "等待载入中......"))
self.pushButton_5.setText(_translate("MainWindow", "-"))
self.pushButton_3.setText(_translate("MainWindow", "X"))
self.label_3.setText(_translate("MainWindow", "更多"))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/soilbean/py-qt6_demo.git
git@gitee.com:soilbean/py-qt6_demo.git
soilbean
py-qt6_demo
PyQt6_demo
master

搜索帮助