Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

37 from PyQt5.QtWidgets import QDialog,QApplication,QSystemTrayIcon, QMenu from PyQt5.QtGui import QIcon from koefisienrefleksi import * class MyForm(QDialog): def __init__(self): super().__init__() self.initUI() self.ui = Ui_SWR_Calculator() self.ui.setupUi(self) self.ui.btn_hitung.clicked.connect(self.hitung) self.show() def initUI(self): self.setGeometry(600,600,600,440) self.setWindowTitle('Icon') self.setWindowIcon(QIcon('icon.png')) def hitung(self): ro = float(self.ui.txt_ro.text().replace(',', '.')) io = float(self.ui.txt_io.text().replace(',', '.')) rl = float(self.ui.txt_rl.text().replace(',', '.')) il = float(self.ui.txt_il.text().replace(',', '.')) if self.ui.satuan_zo.currentText() == "GΩ": io = io*10**9 elif self.ui.satuan_zo.currentText() == "MΩ": io = io*10**6 elif self.ui.satuan_zo.currentText() == "kΩ": io = io*10**3 elif self.ui.satuan_zo.currentText() == "Ω": io elif self.ui.satuan_zo.currentText() == "mΩ":

RkJQdWJsaXNoZXIy MTM3NDc5MQ==