1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
from PySide6.QtCore import * from PySide6.QtGui import * from PySide6.QtWidgets import *
class Ui_MainWindow(object): def setupUi(self, MainWindow): if not MainWindow.objectName(): MainWindow.setObjectName(u"MainWindow") MainWindow.resize(500, 368) self.centralwidget = QWidget(MainWindow) self.centralwidget.setObjectName(u"centralwidget") self.label = QLabel(self.centralwidget) self.label.setObjectName(u"label") self.label.setGeometry(QRect(9, 9, 192, 72)) font = QFont() font.setFamily(u"\u54e5\u7279\u5f0f\u5b57\u4f53") font.setPointSize(48) self.label.setFont(font) self.pushButton = QPushButton(self.centralwidget) self.pushButton.setObjectName(u"pushButton") self.pushButton.setGeometry(QRect(11, 308, 481, 34)) font1 = QFont() font1.setFamily(u"\u65b9\u6b63\u7c97\u9ed1\u5b8b\u7b80\u4f53") font1.setPointSize(16) self.pushButton.setFont(font1) self.outputer = QTextBrowser(self.centralwidget) self.outputer.setObjectName(u"outputer") self.outputer.setGeometry(QRect(10, 201, 482, 101)) font2 = QFont() font2.setFamily(u"8514oem") font2.setPointSize(28) self.outputer.setFont(font2) self.outputer.setCursorWidth(0) self.label_2 = QLabel(self.centralwidget) self.label_2.setObjectName(u"label_2") self.label_2.setGeometry(QRect(9, 87, 120, 25)) font3 = QFont() font3.setFamily(u"\u65b9\u6b63\u7c97\u9ed1\u5b8b\u7b80\u4f53") font3.setPointSize(15) self.label_2.setFont(font3) self.inputer = QPlainTextEdit(self.centralwidget) self.inputer.setObjectName(u"inputer") self.inputer.setGeometry(QRect(9, 118, 482, 41)) self.label_3 = QLabel(self.centralwidget) self.label_3.setObjectName(u"label_3") self.label_3.setGeometry(QRect(10, 170, 120, 25)) self.label_3.setFont(font3) MainWindow.setCentralWidget(self.centralwidget) self.statusbar = QStatusBar(MainWindow) self.statusbar.setObjectName(u"statusbar") MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u6447\u4eba\u673a", None)) self.label.setText(QCoreApplication.translate("MainWindow", u"\u6447\u4eba\u673a", None)) self.pushButton.setText(QCoreApplication.translate("MainWindow", u"\u6447\u4eba\u55bd", None)) self.label_2.setText(QCoreApplication.translate("MainWindow", u"\u8981\u6447\u51e0\u4e2a\u4eba\uff1a", None)) self.label_3.setText(QCoreApplication.translate("MainWindow", u"\u6447\u51fa\u6765\u7684\u4eba\uff1a", None))
|