def checkAddonsForUpdate(self): addons = [] for row in iter(range(self.addonList.rowCount())): name = self.addonList.item(row, 0).text() uri = self.addonList.item(row, 1).text() version = self.addonList.item(row, 2).text() allowBeta = bool(self.addonList.item(row, 4).checkState() == Qt.Qt.Checked) classic = bool(self.addonList.item(row, 5).checkState() == Qt.Qt.Checked) addons.append((row, name, uri, version, allowBeta, classic)) checkDlg = waitdlg.CheckDlg(self, addons) checkDlg.checkFinished.connect(self.onCheckFinished) checkDlg.exec_()
def checkAddonForUpdate(self): row = self.addonList.currentRow() addons = [] name = self.addonList.item(row, 0).text() uri = self.addonList.item(row, 1).text() version = self.addonList.item(row, 2).text() allowBeta = bool( self.addonList.item(row, 4).checkState() == Qt.Qt.Checked) addons.append((row, name, uri, version, allowBeta)) checkDlg = waitdlg.CheckDlg(self, self.wowVersion, addons) checkDlg.checkFinished.connect(self.onCheckFinished) checkDlg.exec_()