55 lines
2.1 KiB
Python
55 lines
2.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
################################################################################
|
|
## Form generated from reading UI file 'demo3.ui'
|
|
##
|
|
## Created by: Qt User Interface Compiler version 6.8.2
|
|
##
|
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
################################################################################
|
|
|
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
|
QMetaObject, QObject, QPoint, QRect,
|
|
QSize, QTime, QUrl, Qt)
|
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|
QFont, QFontDatabase, QGradient, QIcon,
|
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
|
from PySide6.QtWidgets import (QApplication, QLabel, QPushButton, QSizePolicy,
|
|
QWidget)
|
|
|
|
class Ui_Form(object):
|
|
def setupUi(self, Form):
|
|
if not Form.objectName():
|
|
Form.setObjectName(u"Form")
|
|
Form.resize(800, 600)
|
|
font = QFont()
|
|
font.setPointSize(16)
|
|
Form.setFont(font)
|
|
self.pushButton = QPushButton(Form)
|
|
self.pushButton.setObjectName(u"pushButton")
|
|
self.pushButton.setGeometry(QRect(300, 160, 131, 61))
|
|
font1 = QFont()
|
|
font1.setPointSize(20)
|
|
self.pushButton.setFont(font1)
|
|
self.label = QLabel(Form)
|
|
self.label.setObjectName(u"label")
|
|
self.label.setGeometry(QRect(240, 310, 311, 111))
|
|
font2 = QFont()
|
|
font2.setFamilies([u"\u534e\u6587\u6977\u4f53"])
|
|
font2.setPointSize(16)
|
|
self.label.setFont(font2)
|
|
self.label.setLayoutDirection(Qt.LayoutDirection.LeftToRight)
|
|
|
|
self.retranslateUi(Form)
|
|
|
|
QMetaObject.connectSlotsByName(Form)
|
|
# setupUi
|
|
|
|
def retranslateUi(self, Form):
|
|
Form.setWindowTitle(QCoreApplication.translate("Form", u"\u6d4b\u8bd51", None))
|
|
self.pushButton.setText(QCoreApplication.translate("Form", u"\u731c\u4e00\u731c", None))
|
|
self.label.setText(QCoreApplication.translate("Form", u"\u731c\u4e00\u731c\u8fd9\u662f\u8c01\u7684\u8bd7\uff1f", None))
|
|
# retranslateUi
|
|
|