示例#1
0
 def on_actionAdd_Account_triggered(self):
     logger.debug('<MainWindow> on_actionAdd_Account_triggered')
     if len(self.config.clients) == 0:
         dialog = QtWidgets.QMessageBox(parent=self)
         dialog.setText('Please add a Client first.')
     else:
         dialog = UI_EditAccount(parent=self)
     dialog.setModal(True)
     dialog.show()
示例#2
0
    def on_edit_clicked(self):
        logger.debug('%s On Edit Clicked', repr(self))

        dialog = UI_EditAccount(
            parent=self.parent,
            label=self.label,
            username=self.username,
            password=self.password,
            protected=self.protected
        )
        dialog.setModal(True)
        dialog.show()