Пример #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()
Пример #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()
Пример #3
0
        def __load_info_view_log(self):
                textbuffer = self.w_log_info_textview.get_buffer()
                textbuffer.set_text("")
                textiter = textbuffer.get_end_iter()
                log_info_ext = gui_misc.get_log_info_ext()
                pm_info_log = gui_misc.get_log_path(gui_misc.get_pm_name()) + log_info_ext
                wi_info_log = gui_misc.get_log_path(gui_misc.get_wi_name()) + log_info_ext
                um_info_log = gui_misc.get_log_path(gui_misc.get_um_name()) + log_info_ext

                self.__write_to_view_log(um_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_um_name() + "\n")
                self.__write_to_view_log(wi_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_wi_name() + "\n")
                self.__write_to_view_log(pm_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_pm_name() + "\n")
                gobject.idle_add(self.w_log_info_textview.scroll_to_iter, textiter, 0.0)
Пример #4
0
        def __load_info_view_log(self):
                textbuffer = self.w_log_info_textview.get_buffer()
                textbuffer.set_text("")
                textiter = textbuffer.get_end_iter()
                log_dir = gui_misc.get_log_dir()
                log_info_ext = gui_misc.get_log_info_ext()
                pm_info_log = os.path.join(log_dir, gui_misc.get_pm_name() + log_info_ext)
                wi_info_log = os.path.join(log_dir, gui_misc.get_wi_name() + log_info_ext)
                um_info_log = os.path.join(log_dir, gui_misc.get_um_name() + log_info_ext)

                self.__write_to_view_log(um_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_um_name() + "\n")
                self.__write_to_view_log(wi_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_wi_name() + "\n")
                self.__write_to_view_log(pm_info_log,
                    textbuffer, textiter, _("None: ") + gui_misc.get_pm_name() + "\n")
                gobject.idle_add(self.w_log_info_textview.scroll_to_iter, textiter, 0.0)