예제 #1
0
파일: pmlogging.py 프로젝트: aszeszo/test
 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()
예제 #2
0
파일: pmlogging.py 프로젝트: gbulfon/pkg5
 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()
예제 #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)
예제 #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)
예제 #5
0
파일: webinstall.py 프로젝트: aszeszo/test
 def __exit_app(self, be_name = None):
         gui_misc.shutdown_logging()
         self.w_webinstall_dialog.destroy()
         gtk.main_quit()
         sys.exit(0)
         return
예제 #6
0
파일: webinstall.py 프로젝트: gbulfon/pkg5
 def __exit_app(self, be_name=None):
     gui_misc.shutdown_logging()
     self.w_webinstall_dialog.destroy()
     gtk.main_quit()
     sys.exit(0)
     return