def check_elm(self): currentitem = self.listview.currentItem() if currentitem: self.logview.show() port = str(currentitem.text().split('[')[0]) speed = int(self.speedcombo.currentText()) res = elm.elm_checker(port, speed, self.logview, core.QCoreApplication) if res == False: self.logview.append(options.get_last_error())
def check_elm(self): currentitem = self.listview.currentItem() self.logview.show() if self.wifibutton.isChecked(): port = str(self.wifiinput.text()) else: if not currentitem: self.logview.hide() return portinfo = unicode(currentitem.text().toUtf8(), encoding="utf-8") port = self.ports[portinfo][0] speed = int(self.speedcombo.currentText()) res = elm.elm_checker(port, speed, self.logview, core.QCoreApplication) if not res: self.logview.append(options.get_last_error())