コード例 #1
0
 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()
コード例 #2
0
 def commandAdd(self):
     print "[gmail-plasmoid] Add account"
     dialog = GmailConfigAccount(self.parent, self)
     dialog.setModal(True)
     dialog.show()