-
Notifications
You must be signed in to change notification settings - Fork 0
/
hesap_ui.py
257 lines (250 loc) · 12.2 KB
/
hesap_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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'hesap_ui.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(668, 600)
MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
MainWindow.setMouseTracking(False)
MainWindow.setTabletTracking(False)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.le_sonuc = QtWidgets.QLineEdit(self.centralwidget)
self.le_sonuc.setGeometry(QtCore.QRect(50, 90, 561, 111))
font = QtGui.QFont()
font.setPointSize(32)
font.setBold(False)
font.setWeight(50)
self.le_sonuc.setFont(font)
self.le_sonuc.setFocusPolicy(QtCore.Qt.NoFocus)
self.le_sonuc.setFrame(False)
self.le_sonuc.setCursorPosition(1)
self.le_sonuc.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.le_sonuc.setPlaceholderText("")
self.le_sonuc.setObjectName("le_sonuc")
self.lbl_sonuc = QtWidgets.QLabel(self.centralwidget)
self.lbl_sonuc.setGeometry(QtCore.QRect(50, 40, 561, 51))
font = QtGui.QFont()
font.setPointSize(11)
self.lbl_sonuc.setFont(font)
self.lbl_sonuc.setCursor(QtGui.QCursor(QtCore.Qt.IBeamCursor))
self.lbl_sonuc.setStyleSheet("background-color: rgb(255, 255, 255);")
self.lbl_sonuc.setFrameShape(QtWidgets.QFrame.NoFrame)
self.lbl_sonuc.setText("")
self.lbl_sonuc.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.lbl_sonuc.setIndent(10)
self.lbl_sonuc.setObjectName("lbl_sonuc")
self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.gridLayoutWidget.setGeometry(QtCore.QRect(170, 220, 441, 311))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.pb_esittir = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_esittir.setMinimumSize(QtCore.QSize(101, 51))
self.pb_esittir.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_esittir.setFont(font)
self.pb_esittir.setObjectName("pb_esittir")
self.gridLayout.addWidget(self.pb_esittir, 4, 3, 1, 1)
self.pb_5 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_5.setMinimumSize(QtCore.QSize(101, 51))
self.pb_5.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_5.setFont(font)
self.pb_5.setObjectName("pb_5")
self.gridLayout.addWidget(self.pb_5, 2, 1, 1, 1)
self.pb_4 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_4.setMinimumSize(QtCore.QSize(101, 51))
self.pb_4.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_4.setFont(font)
self.pb_4.setObjectName("pb_4")
self.gridLayout.addWidget(self.pb_4, 2, 0, 1, 1)
self.pb_9 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_9.setMinimumSize(QtCore.QSize(101, 51))
self.pb_9.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_9.setFont(font)
self.pb_9.setObjectName("pb_9")
self.gridLayout.addWidget(self.pb_9, 1, 2, 1, 1)
self.pb_carpi = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_carpi.setMinimumSize(QtCore.QSize(101, 51))
self.pb_carpi.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_carpi.setFont(font)
self.pb_carpi.setObjectName("pb_carpi")
self.gridLayout.addWidget(self.pb_carpi, 1, 3, 1, 1)
self.pb_8 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_8.setMinimumSize(QtCore.QSize(101, 51))
self.pb_8.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_8.setFont(font)
self.pb_8.setObjectName("pb_8")
self.gridLayout.addWidget(self.pb_8, 1, 1, 1, 1)
self.pb_nokta = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_nokta.setMinimumSize(QtCore.QSize(101, 51))
self.pb_nokta.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_nokta.setFont(font)
self.pb_nokta.setObjectName("pb_nokta")
self.gridLayout.addWidget(self.pb_nokta, 4, 2, 1, 1)
self.pb_eksile = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_eksile.setMinimumSize(QtCore.QSize(101, 51))
self.pb_eksile.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_eksile.setFont(font)
self.pb_eksile.setObjectName("pb_eksile")
self.gridLayout.addWidget(self.pb_eksile, 4, 0, 1, 1)
self.pb_6 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_6.setMinimumSize(QtCore.QSize(101, 51))
self.pb_6.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_6.setFont(font)
self.pb_6.setObjectName("pb_6")
self.gridLayout.addWidget(self.pb_6, 2, 2, 1, 1)
self.pb_3 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_3.setMinimumSize(QtCore.QSize(101, 51))
self.pb_3.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_3.setFont(font)
self.pb_3.setObjectName("pb_3")
self.gridLayout.addWidget(self.pb_3, 3, 2, 1, 1)
self.pb_2 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_2.setMinimumSize(QtCore.QSize(101, 51))
self.pb_2.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_2.setFont(font)
self.pb_2.setObjectName("pb_2")
self.gridLayout.addWidget(self.pb_2, 3, 1, 1, 1)
self.pb_1 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_1.setMinimumSize(QtCore.QSize(101, 51))
self.pb_1.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_1.setFont(font)
self.pb_1.setObjectName("pb_1")
self.gridLayout.addWidget(self.pb_1, 3, 0, 1, 1)
self.pb_0 = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_0.setMinimumSize(QtCore.QSize(101, 51))
self.pb_0.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_0.setFont(font)
self.pb_0.setObjectName("pb_0")
self.gridLayout.addWidget(self.pb_0, 4, 1, 1, 1)
self.pb_arti = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_arti.setMinimumSize(QtCore.QSize(101, 51))
self.pb_arti.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_arti.setFont(font)
self.pb_arti.setObjectName("pb_arti")
self.gridLayout.addWidget(self.pb_arti, 3, 3, 1, 1)
self.pb_eksi = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_eksi.setMinimumSize(QtCore.QSize(101, 51))
self.pb_eksi.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(18)
self.pb_eksi.setFont(font)
self.pb_eksi.setObjectName("pb_eksi")
self.gridLayout.addWidget(self.pb_eksi, 2, 3, 1, 1)
self.pb_7 = QtWidgets.QPushButton(self.gridLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pb_7.sizePolicy().hasHeightForWidth())
self.pb_7.setSizePolicy(sizePolicy)
self.pb_7.setMinimumSize(QtCore.QSize(101, 51))
self.pb_7.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_7.setFont(font)
self.pb_7.setObjectName("pb_7")
self.gridLayout.addWidget(self.pb_7, 1, 0, 1, 1)
self.pb_bolu = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_bolu.setMinimumSize(QtCore.QSize(101, 51))
self.pb_bolu.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_bolu.setFont(font)
self.pb_bolu.setObjectName("pb_bolu")
self.gridLayout.addWidget(self.pb_bolu, 0, 3, 1, 1)
self.pb_duzelt = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_duzelt.setMinimumSize(QtCore.QSize(101, 51))
self.pb_duzelt.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_duzelt.setFont(font)
self.pb_duzelt.setObjectName("pb_duzelt")
self.gridLayout.addWidget(self.pb_duzelt, 0, 2, 1, 1)
self.pb_clear = QtWidgets.QPushButton(self.gridLayoutWidget)
self.pb_clear.setMinimumSize(QtCore.QSize(101, 51))
self.pb_clear.setMaximumSize(QtCore.QSize(101, 51))
font = QtGui.QFont()
font.setPointSize(15)
self.pb_clear.setFont(font)
self.pb_clear.setObjectName("pb_clear")
self.gridLayout.addWidget(self.pb_clear, 0, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 668, 26))
self.menubar.setObjectName("menubar")
self.menuAbout = QtWidgets.QMenu(self.menubar)
self.menuAbout.setObjectName("menuAbout")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setMenuRole(QtWidgets.QAction.AboutRole)
self.actionAbout.setObjectName("actionAbout")
self.menuAbout.addAction(self.actionAbout)
self.menubar.addAction(self.menuAbout.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Emre\'nin Hesap Makinesi 2.0"))
self.le_sonuc.setText(_translate("MainWindow", "0"))
self.pb_esittir.setText(_translate("MainWindow", "="))
self.pb_5.setText(_translate("MainWindow", "5"))
self.pb_4.setText(_translate("MainWindow", "4"))
self.pb_9.setText(_translate("MainWindow", "9"))
self.pb_carpi.setText(_translate("MainWindow", "x"))
self.pb_8.setText(_translate("MainWindow", "8"))
self.pb_nokta.setText(_translate("MainWindow", "."))
self.pb_eksile.setText(_translate("MainWindow", "+/-"))
self.pb_6.setText(_translate("MainWindow", "6"))
self.pb_3.setText(_translate("MainWindow", "3"))
self.pb_2.setText(_translate("MainWindow", "2"))
self.pb_1.setText(_translate("MainWindow", "1"))
self.pb_0.setText(_translate("MainWindow", "0"))
self.pb_arti.setText(_translate("MainWindow", "+"))
self.pb_eksi.setText(_translate("MainWindow", "-"))
self.pb_7.setText(_translate("MainWindow", "7"))
self.pb_bolu.setText(_translate("MainWindow", "/"))
self.pb_duzelt.setText(_translate("MainWindow", "<-"))
self.pb_clear.setText(_translate("MainWindow", "C"))
self.menuAbout.setTitle(_translate("MainWindow", "Yardım"))
self.actionAbout.setText(_translate("MainWindow", "Hakkında"))