Viving Frendiana - Penyelesaian Sistem Transmisi dengan Pemr

56 self.types_2=['MΩ', 'kΩ', 'Ω', 'mΩ', 'µΩ', 'nΩ', 'pΩ'] self.types_3=['Mv', 'kv', 'v', 'mv', 'µv', 'nv', 'pv'] self.types_4=['Mv', 'kv', 'v', 'mv', 'µv', 'nv', 'pv'] self.addcontent() self.ui.pushButton.clicked.connect(self.compute ) self.show() def addcontent(self): for i in self.types: self.ui.comboBoxlamda.addItem(i) for a in self.types_2: self.ui.comboBoxzo.addItem(a) for u in self.types_3: self.ui.comboBoxvmax.addItem(u) for e in self.types_4: self.ui.comboBoxvmin.addItem(e) def compute(self): lamda =self.ui.doubleSpinlamda.value() zo =self.ui.doubleSpinzo.value() vmax =self.ui.doubleSpinvmax.value() vmin =self.ui.doubleSpinvmin.value() lmin =self.ui.doubleSpinlmin.value() chosentype=self.ui.comboBoxlamda.itemText(self. ui.comboBoxlamda.currentIndex()) chosentype_2=self.ui.comboBoxzo.itemText(self.u i.comboBoxzo.currentIndex()) chosentype_3=self.ui.comboBoxvmax.itemText(self .ui.comboBoxvmax.currentIndex()) chosentype_4=self.ui.comboBoxvmin.itemText(self .ui.comboBoxvmin.currentIndex()) Nilailamda=0 if chosentype=="m": Nilailamda=0 if chosentype=="dm": Nilailamda=-1 if chosentype=="cm": Nilailamda=-2 if chosentype=="mm": Nilailamda=-3

RkJQdWJsaXNoZXIy MTM3NDc5MQ==