-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator_ui.py
148 lines (117 loc) · 6.92 KB
/
calculator_ui.py
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'calculator.ui'
##
## Created by: Qt User Interface Compiler version 6.5.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, QGridLayout, QLineEdit, QMainWindow,
QMenuBar, QPushButton, QSizePolicy, QStatusBar,
QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(492, 567)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.gridLayoutWidget = QWidget(self.centralwidget)
self.gridLayoutWidget.setObjectName(u"gridLayoutWidget")
self.gridLayoutWidget.setGeometry(QRect(30, 110, 331, 361))
self.gridLayout = QGridLayout(self.gridLayoutWidget)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.pushButton_5 = QPushButton(self.gridLayoutWidget)
self.pushButton_5.setObjectName(u"pushButton_5")
self.gridLayout.addWidget(self.pushButton_5, 1, 1, 1, 1)
self.pushButton = QPushButton(self.gridLayoutWidget)
self.pushButton.setObjectName(u"pushButton")
self.gridLayout.addWidget(self.pushButton, 0, 2, 1, 1)
self.pushButton_3 = QPushButton(self.gridLayoutWidget)
self.pushButton_3.setObjectName(u"pushButton_3")
self.gridLayout.addWidget(self.pushButton_3, 0, 0, 1, 1)
self.pushButton_9 = QPushButton(self.gridLayoutWidget)
self.pushButton_9.setObjectName(u"pushButton_9")
self.gridLayout.addWidget(self.pushButton_9, 2, 2, 1, 1)
self.pushButton_2 = QPushButton(self.gridLayoutWidget)
self.pushButton_2.setObjectName(u"pushButton_2")
self.gridLayout.addWidget(self.pushButton_2, 0, 1, 1, 1)
self.pushButton_7 = QPushButton(self.gridLayoutWidget)
self.pushButton_7.setObjectName(u"pushButton_7")
self.gridLayout.addWidget(self.pushButton_7, 1, 2, 1, 1)
self.pushButton_10 = QPushButton(self.gridLayoutWidget)
self.pushButton_10.setObjectName(u"pushButton_10")
self.gridLayout.addWidget(self.pushButton_10, 3, 0, 1, 1)
self.pushButton_4 = QPushButton(self.gridLayoutWidget)
self.pushButton_4.setObjectName(u"pushButton_4")
self.gridLayout.addWidget(self.pushButton_4, 1, 0, 1, 1)
self.pushButton_8 = QPushButton(self.gridLayoutWidget)
self.pushButton_8.setObjectName(u"pushButton_8")
self.gridLayout.addWidget(self.pushButton_8, 2, 1, 1, 1)
self.pushButton_6 = QPushButton(self.gridLayoutWidget)
self.pushButton_6.setObjectName(u"pushButton_6")
self.gridLayout.addWidget(self.pushButton_6, 2, 0, 1, 1)
self.pushButton_11 = QPushButton(self.gridLayoutWidget)
self.pushButton_11.setObjectName(u"pushButton_11")
self.gridLayout.addWidget(self.pushButton_11, 3, 1, 1, 1)
self.pushButton_12 = QPushButton(self.gridLayoutWidget)
self.pushButton_12.setObjectName(u"pushButton_12")
self.gridLayout.addWidget(self.pushButton_12, 3, 2, 1, 1)
self.pushButton_13 = QPushButton(self.centralwidget)
self.pushButton_13.setObjectName(u"pushButton_13")
self.pushButton_13.setGeometry(QRect(380, 160, 89, 25))
self.pushButton_14 = QPushButton(self.centralwidget)
self.pushButton_14.setObjectName(u"pushButton_14")
self.pushButton_14.setGeometry(QRect(380, 220, 89, 25))
self.pushButton_15 = QPushButton(self.centralwidget)
self.pushButton_15.setObjectName(u"pushButton_15")
self.pushButton_15.setGeometry(QRect(380, 280, 89, 25))
self.pushButton_16 = QPushButton(self.centralwidget)
self.pushButton_16.setObjectName(u"pushButton_16")
self.pushButton_16.setGeometry(QRect(380, 340, 89, 25))
self.pushButton_17 = QPushButton(self.centralwidget)
self.pushButton_17.setObjectName(u"pushButton_17")
self.pushButton_17.setGeometry(QRect(380, 420, 89, 25))
self.lineEdit = QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(u"lineEdit")
self.lineEdit.setGeometry(QRect(30, 40, 331, 41))
self.lineEdit.setReadOnly(True)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 492, 22))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
self.pushButton_5.setText(QCoreApplication.translate("MainWindow", u"5", None))
self.pushButton.setText(QCoreApplication.translate("MainWindow", u"9", None))
self.pushButton_3.setText(QCoreApplication.translate("MainWindow", u"7", None))
self.pushButton_9.setText(QCoreApplication.translate("MainWindow", u"3", None))
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"8", None))
self.pushButton_7.setText(QCoreApplication.translate("MainWindow", u"6", None))
self.pushButton_10.setText(QCoreApplication.translate("MainWindow", u"0", None))
self.pushButton_4.setText(QCoreApplication.translate("MainWindow", u"4", None))
self.pushButton_8.setText(QCoreApplication.translate("MainWindow", u"2", None))
self.pushButton_6.setText(QCoreApplication.translate("MainWindow", u"1", None))
self.pushButton_11.setText(QCoreApplication.translate("MainWindow", u",", None))
self.pushButton_12.setText(QCoreApplication.translate("MainWindow", u"DEL", None))
self.pushButton_13.setText(QCoreApplication.translate("MainWindow", u"+", None))
self.pushButton_14.setText(QCoreApplication.translate("MainWindow", u"-", None))
self.pushButton_15.setText(QCoreApplication.translate("MainWindow", u"x", None))
self.pushButton_16.setText(QCoreApplication.translate("MainWindow", u"/", None))
self.pushButton_17.setText(QCoreApplication.translate("MainWindow", u"=", None))
# retranslateUi