-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainWindow.py
78 lines (71 loc) · 3.87 KB
/
mainWindow.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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
# pyuic5 mainWindow.ui -o mainWindow.py => bu script sayesinde designer tarafında yapılan bir değişiklik python dosyasına(yani bu dosyaya) aktarılmış olur.
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(514, 367)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(110, 70, 61, 31))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(110, 110, 61, 31))
self.label_2.setObjectName("label_2")
self.txt_sayi1 = QtWidgets.QLineEdit(self.centralwidget)
self.txt_sayi1.setGeometry(QtCore.QRect(160, 79, 200, 32))
self.txt_sayi1.setObjectName("txt_sayi1")
self.txt_sayi2 = QtWidgets.QLineEdit(self.centralwidget)
self.txt_sayi2.setGeometry(QtCore.QRect(160, 119, 200, 32))
self.txt_sayi2.setObjectName("txt_sayi2")
self.btn_toplama = QtWidgets.QPushButton(self.centralwidget)
self.btn_toplama.setGeometry(QtCore.QRect(160, 170, 101, 41))
self.btn_toplama.setObjectName("btn_toplama")
self.btn_cikarma = QtWidgets.QPushButton(self.centralwidget)
self.btn_cikarma.setGeometry(QtCore.QRect(270, 170, 101, 41))
self.btn_cikarma.setObjectName("btn_cikarma")
self.btn_carpma = QtWidgets.QPushButton(self.centralwidget)
self.btn_carpma.setGeometry(QtCore.QRect(160, 220, 101, 41))
self.btn_carpma.setObjectName("btn_carpma")
self.btn_bolme = QtWidgets.QPushButton(self.centralwidget)
self.btn_bolme.setGeometry(QtCore.QRect(270, 220, 101, 41))
self.btn_bolme.setObjectName("btn_bolme")
self.lbl_sonuc = QtWidgets.QLabel(self.centralwidget)
self.lbl_sonuc.setGeometry(QtCore.QRect(160, 270, 51, 21))
self.lbl_sonuc.setObjectName("lbl_sonuc")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(160, 20, 201, 21))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 514, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "Sayı 1 :"))
self.label_2.setText(_translate("MainWindow", "Sayı 2 :"))
self.btn_toplama.setText(_translate("MainWindow", "Toplama"))
self.btn_cikarma.setText(_translate("MainWindow", "Çıkarma"))
self.btn_carpma.setText(_translate("MainWindow", "Çarpma"))
self.btn_bolme.setText(_translate("MainWindow", "Bölme"))
self.lbl_sonuc.setText(_translate("MainWindow", "Sonuç: "))
self.label_4.setText(_translate("MainWindow", "HESAP MAKİNESİ"))