# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file '计算器.ui' ## ## Created by: Qt User Interface Compiler version 6.6.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, QHBoxLayout, QLineEdit, QPushButton, QSizePolicy, QVBoxLayout, QWidget) class Ui_Form(object): def setupUi(self, Form): if not Form.objectName(): Form.setObjectName(u"Form") Form.resize(334, 235) self.widget = QWidget(Form) self.widget.setObjectName(u"widget") self.widget.setGeometry(QRect(10, 0, 322, 230)) self.verticalLayout = QVBoxLayout(self.widget) self.verticalLayout.setObjectName(u"verticalLayout") self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.lineEdit = QLineEdit(self.widget) self.lineEdit.setObjectName(u"lineEdit") self.lineEdit.setMinimumSize(QSize(0, 100)) font = QFont() font.setPointSize(48) self.lineEdit.setFont(font) self.lineEdit.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter) self.lineEdit.setClearButtonEnabled(False) self.verticalLayout.addWidget(self.lineEdit, 0, Qt.AlignVCenter) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.pushButton_7 = QPushButton(self.widget) self.pushButton_7.setObjectName(u"pushButton_7") self.pushButton_7.setEnabled(True) self.horizontalLayout.addWidget(self.pushButton_7) self.pushButton_8 = QPushButton(self.widget) self.pushButton_8.setObjectName(u"pushButton_8") self.pushButton_8.setEnabled(True) self.horizontalLayout.addWidget(self.pushButton_8) self.pushButton_9 = QPushButton(self.widget) self.pushButton_9.setObjectName(u"pushButton_9") self.pushButton_9.setEnabled(True) self.horizontalLayout.addWidget(self.pushButton_9) self.pushButton_div = QPushButton(self.widget) self.pushButton_div.setObjectName(u"pushButton_div") self.pushButton_div.setEnabled(True) self.horizontalLayout.addWidget(self.pushButton_div) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.pushButton_4 = QPushButton(self.widget) self.pushButton_4.setObjectName(u"pushButton_4") self.pushButton_4.setEnabled(True) self.horizontalLayout_2.addWidget(self.pushButton_4) self.pushButton_5 = QPushButton(self.widget) self.pushButton_5.setObjectName(u"pushButton_5") self.pushButton_5.setEnabled(True) self.horizontalLayout_2.addWidget(self.pushButton_5) self.pushButton_6 = QPushButton(self.widget) self.pushButton_6.setObjectName(u"pushButton_6") self.pushButton_6.setEnabled(True) self.horizontalLayout_2.addWidget(self.pushButton_6) self.pushButton_times = QPushButton(self.widget) self.pushButton_times.setObjectName(u"pushButton_times") self.pushButton_times.setEnabled(True) self.horizontalLayout_2.addWidget(self.pushButton_times) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.pushButton_1 = QPushButton(self.widget) self.pushButton_1.setObjectName(u"pushButton_1") self.pushButton_1.setEnabled(True) self.horizontalLayout_3.addWidget(self.pushButton_1) self.pushButton_2 = QPushButton(self.widget) self.pushButton_2.setObjectName(u"pushButton_2") self.pushButton_2.setEnabled(True) self.horizontalLayout_3.addWidget(self.pushButton_2) self.pushButton_3 = QPushButton(self.widget) self.pushButton_3.setObjectName(u"pushButton_3") self.pushButton_3.setEnabled(True) self.horizontalLayout_3.addWidget(self.pushButton_3) self.pushButton_sub = QPushButton(self.widget) self.pushButton_sub.setObjectName(u"pushButton_sub") self.pushButton_sub.setEnabled(True) self.horizontalLayout_3.addWidget(self.pushButton_sub) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_4 = QHBoxLayout() self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.pushButton_0 = QPushButton(self.widget) self.pushButton_0.setObjectName(u"pushButton_0") self.pushButton_0.setEnabled(True) self.horizontalLayout_4.addWidget(self.pushButton_0) self.pushButton_dot = QPushButton(self.widget) self.pushButton_dot.setObjectName(u"pushButton_dot") self.pushButton_dot.setEnabled(True) self.horizontalLayout_4.addWidget(self.pushButton_dot) self.pushButton_eq = QPushButton(self.widget) self.pushButton_eq.setObjectName(u"pushButton_eq") self.pushButton_eq.setEnabled(True) self.horizontalLayout_4.addWidget(self.pushButton_eq) self.pushButton_add = QPushButton(self.widget) self.pushButton_add.setObjectName(u"pushButton_add") self.pushButton_add.setEnabled(True) self.horizontalLayout_4.addWidget(self.pushButton_add) self.verticalLayout.addLayout(self.horizontalLayout_4) self.retranslateUi(Form) QMetaObject.connectSlotsByName(Form) # setupUi def retranslateUi(self, Form): Form.setWindowTitle(QCoreApplication.translate("Form", u"\u4e00\u4e2a\u7b80\u964b\u7684\u8ba1\u7b97\u5668", None)) #if QT_CONFIG(statustip) self.lineEdit.setStatusTip("") #endif // QT_CONFIG(statustip) self.lineEdit.setPlaceholderText(QCoreApplication.translate("Form", u"0", None)) self.pushButton_7.setText(QCoreApplication.translate("Form", u"7", None)) self.pushButton_8.setText(QCoreApplication.translate("Form", u"8", None)) self.pushButton_9.setText(QCoreApplication.translate("Form", u"9", None)) self.pushButton_div.setText(QCoreApplication.translate("Form", u"/", None)) self.pushButton_4.setText(QCoreApplication.translate("Form", u"4", None)) self.pushButton_5.setText(QCoreApplication.translate("Form", u"5", None)) self.pushButton_6.setText(QCoreApplication.translate("Form", u"6", None)) self.pushButton_times.setText(QCoreApplication.translate("Form", u"*", None)) self.pushButton_1.setText(QCoreApplication.translate("Form", u"1", None)) self.pushButton_2.setText(QCoreApplication.translate("Form", u"2", None)) self.pushButton_3.setText(QCoreApplication.translate("Form", u"3", None)) self.pushButton_sub.setText(QCoreApplication.translate("Form", u"-", None)) self.pushButton_0.setText(QCoreApplication.translate("Form", u"0", None)) self.pushButton_dot.setText(QCoreApplication.translate("Form", u".", None)) self.pushButton_eq.setText(QCoreApplication.translate("Form", u"=", None)) self.pushButton_add.setText(QCoreApplication.translate("Form", u"+", None)) # retranslateUi