def update_complete(): info_message( title=_("The Qube update"), message= _("""An update for The Qube has been downloaded and installed. Press okay to restart the application and begin using the new version. Enjoy!""")) shutdown.exit()
def Exit(self): """Exits The Qube.""" if not hasattr(global_vars, 'shutdown_lock'): global_vars.shutdown_lock = threading.Lock() with global_vars.shutdown_lock: if config.main['client']['AskForExit']: d = question_dialog(parent=application.main_frame, caption=_("Exit %s") % application.name, message=_("Are you sure you wish to exit %s?") % application.name, style=wx.YES|wx.NO|wx.ICON_WARNING) if d!= wx.ID_YES: return output.speak(_("Canceled."), True) output.speak(_("Exiting %s.") % application.name, True) shutdown.exit()
def Exit(self): """Exits The Qube.""" if not hasattr(global_vars, 'shutdown_lock'): global_vars.shutdown_lock = threading.Lock() with global_vars.shutdown_lock: if config.main['client']['AskForExit']: d = question_dialog( parent=application.main_frame, caption=_("Exit %s") % application.name, message=_("Are you sure you wish to exit %s?") % application.name, style=wx.YES | wx.NO | wx.ICON_WARNING) if d != wx.ID_YES: return output.speak(_("Canceled."), True) output.speak(_("Exiting %s.") % application.name, True) shutdown.exit()
def on_end_session (evt): evt.Skip() logging.warning("Received system shutdown event. Initiating application shutdown. Don't panic!") exit()
def on_end_session(evt): evt.Skip() logging.warning( "Received system shutdown event. Initiating application shutdown. Don't panic!" ) exit()
def update_complete(): info_message(title=_("The Qube update"), message=_("""An update for The Qube has been downloaded and installed. Press okay to restart the application and begin using the new version. Enjoy!""")) shutdown.exit()
def update_complete(): wx.MessageBox(caption=_("%s update") % application.name, message=_("An update for %s has been downloaded and installed. Click the OK button to restart the application and begin using the new version.\nEnjoy!") % application.name, style=wx.OK | wx.ICON_INFORMATION) shutdown.exit()
def update_complete(): wx.MessageBox(caption=_("%s updated successfully!") % application.name, message=_("An update for %s has been downloaded and installed. Click the OK button to restart the application and begin using the new version.\nEnjoy!") % application.name, style=wx.OK | wx.ICON_INFORMATION) shutdown.exit()