-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainForm.py
97 lines (83 loc) · 3.21 KB
/
MainForm.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainForm.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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
from PyQt5 import QtCore, QtGui, QtWidgets
from KalkulatorBMI import*
from KalkulatorBMI_prog import*
from KalkulatorBmr import*
from KalkulatorBmr_prog import*
from KalkulatorJAN import*
from KalkulatorJAN_prog import*
class Ui_Form(object):
def bmr(self):
self.BMR = QtWidgets.QMainWindow()
self.ui = Ui_KalkulatorBmr()
self.ui.setupUi(self.BMR)
self.ui.signals()
self.BMR.show()
def bmi(self):
self.BMI = QtWidgets.QMainWindow()
self.uis = Ui_MainWindow()
self.uis.setupUi(self.BMI)
self.uis.signals()
self.BMI.show()
def jantung(self):
self.JAN = QtWidgets.QMainWindow()
self.uii = Ui_FormJAN()
self.uii.setupUi(self.JAN)
self.uii.signals()
self.JAN.show()
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(231, 344)
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(40, 50, 161, 16))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.push_bmr = QtWidgets.QPushButton(Form)
self.push_bmr.setGeometry(QtCore.QRect(60, 110, 121, 41))
font = QtGui.QFont()
font.setPointSize(8)
self.push_bmr.setFont(font)
self.push_bmr.setObjectName("push_bmr")
self.push_bmr.clicked.connect(self.bmr)
self.push_bmi = QtWidgets.QPushButton(Form)
self.push_bmi.setGeometry(QtCore.QRect(60, 170, 121, 41))
font = QtGui.QFont()
font.setPointSize(8)
self.push_bmi.setFont(font)
self.push_bmi.setObjectName("push_bmi")
self.push_bmi.clicked.connect(self.bmi)
self.push_jantung = QtWidgets.QPushButton(Form)
self.push_jantung.setGeometry(QtCore.QRect(60, 230, 121, 41))
font = QtGui.QFont()
font.setPointSize(8)
self.push_jantung.setFont(font)
self.push_jantung.setObjectName("push_jantung")
self.push_jantung.clicked.connect(self.jantung)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.label.setText(_translate("Form", "Pilih Kalkulator"))
self.push_bmr.setText(_translate("Form", "Kalkulator BMR"))
self.push_bmi.setText(_translate("Form", "Kalkulator BMI"))
self.push_jantung.setText(_translate("Form", "Kalkulator Jantung"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Form = QtWidgets.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())