def onResponse(dlg, respId): """ One of the button in the dialog box has been clicked """ if respId == gtk.RESPONSE_HELP: primary = _('About password storage safety') secondary = '%s\n\n%s' % (_('If you use Gnome, it is safe to store your password since the Gnome keyring is used.'), _('If you do not use Gnome, beware that, although not stored as clear text, an attacker <i>could</i> retrieve it.')) gui.infoMsgBox(dlg, primary, secondary) dlg.stop_emission('response')
def handleMsg(self, msg, params): """ Handle messages sent to this module """ if msg == consts.MSG_EVT_APP_STARTED: self.onAppStarted() elif msg == consts.MSG_EVT_MOD_LOADED: self.onModLoaded() gui.infoMsgBox(None, _('Restart required'), _('You must restart the application for this modification to take effect.')) elif msg == consts.MSG_EVT_MOD_UNLOADED: gui.infoMsgBox(None, _('Restart required'), _('You must restart the application for this modification to take effect.'))
def handleMsg(self, msg, params): """ Handle messages sent to this module """ if msg == consts.MSG_EVT_APP_STARTED: modules.postMsg(consts.MSG_CMD_ENABLE_RG) elif msg in (consts.MSG_EVT_MOD_LOADED, consts.MSG_EVT_MOD_UNLOADED): gui.infoMsgBox(None, _('Restart required'), _('You must restart the application for this modification to take effect.'))