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()
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()
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)
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)
def __exit_app(self, be_name = None): gui_misc.shutdown_logging() self.w_webinstall_dialog.destroy() gtk.main_quit() sys.exit(0) return
def __exit_app(self, be_name=None): gui_misc.shutdown_logging() self.w_webinstall_dialog.destroy() gtk.main_quit() sys.exit(0) return