Exemplo n.º 1
0
 def __on_log_clear_button_clicked(self, widget):
         ext = gui_misc.get_log_error_ext()
         self.__clear_logs(ext) 
         ext = gui_misc.get_log_info_ext()
         self.__clear_logs(ext) 
         gui_misc.shutdown_logging()
         gui_misc.setup_logging()
         self.log_activate()
Exemplo n.º 2
0
 def __on_log_clear_button_clicked(self, widget):
         log_dir = gui_misc.get_log_dir()
         ext = gui_misc.get_log_error_ext()
         self.__clear_logs(log_dir, ext) 
         ext = gui_misc.get_log_info_ext()
         self.__clear_logs(log_dir, ext) 
         gui_misc.shutdown_logging()
         gui_misc.setup_logging()
         self.log_activate()
Exemplo n.º 3
0
 def __exit_app(self, restart=False):
     gui_misc.shutdown_logging()
     if restart:
         try:
             if self.image_dir_arg:
                 gobject.spawn_async([self.application_path, "--image-dir", self.image_dir_arg])
             else:
                 gobject.spawn_async([self.application_path])
         except gobject.GError, ex:
             if debug:
                 print >>sys.stderr, "Exception occurred: %s" % ex
             logger.error(ex)
Exemplo n.º 4
0
 def __exit_app(self, restart = False):
         gui_misc.shutdown_logging()
         if restart:
                 try:
                         if self.image_dir_arg:
                                 gobject.spawn_async([self.application_path,
                                     "--image-dir", self.image_dir_arg])
                         else:
                                 gobject.spawn_async([self.application_path])
                 except gobject.GError, ex:
                         if debug:
                                 print >> sys.stderr, "Exception occurred: %s" % ex
                         logger.error(ex)
Exemplo n.º 5
0
 def __exit_app(self, be_name = None):
         gui_misc.shutdown_logging()
         self.w_webinstall_dialog.destroy()
         gtk.main_quit()
         sys.exit(0)
         return
Exemplo n.º 6
0
 def __exit_app(self, be_name=None):
     gui_misc.shutdown_logging()
     self.w_webinstall_dialog.destroy()
     gtk.main_quit()
     sys.exit(0)
     return