def OnEditItem(self): asins = self.GetSelectedASINs() if len(asins) > 1: return form = ItemForm(self, self.accessKey, self.secretKey, self.associateTag, asins[0]) if form.exec_() == QtGui.QDialog.Accepted: self.UpdateListView()
def OnAddItem(self): form = ItemForm(self, self.accessKey, self.secretKey, self.associateTag) if form.exec_() == QtGui.QDialog.Accepted: self.UpdateListView()