def commandModify(self, item): print "[gmail-plasmoid] Modify account" dialog = GmailConfigAccount(self.parent, self, self.listAccounts.currentRow(), self.convertAccount(self.accountlist[item.data(Qt.UserRole).toPyObject()])) dialog.setModal(True) dialog.show() self.updateButtonState()
def commandAdd(self): print "[gmail-plasmoid] Add account" dialog = GmailConfigAccount(self.parent, self) dialog.setModal(True) dialog.show()