Пример #1
0
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()
Пример #2
0
 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()
Пример #3
0
 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()
Пример #4
0
def on_end_session (evt):
 evt.Skip()
 logging.warning("Received system shutdown event.  Initiating application shutdown.  Don't panic!")
 exit()
Пример #5
0
def on_end_session(evt):
    evt.Skip()
    logging.warning(
        "Received system shutdown event.  Initiating application shutdown.  Don't panic!"
    )
    exit()
Пример #6
0
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()
Пример #7
0
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()
Пример #8
0
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()