Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 4
0
def on_end_session (evt):
 evt.Skip()
 logging.warning("Received system shutdown event.  Initiating application shutdown.  Don't panic!")
 exit()
Ejemplo n.º 5
0
def on_end_session(evt):
    evt.Skip()
    logging.warning(
        "Received system shutdown event.  Initiating application shutdown.  Don't panic!"
    )
    exit()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()