コード例 #1
0
ファイル: pmlogging.py プロジェクト: aszeszo/test
        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)
コード例 #2
0
ファイル: pmlogging.py プロジェクト: gbulfon/pkg5
        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)
コード例 #3
0
ファイル: pmlogging.py プロジェクト: aszeszo/test
 def __clear_logs(self, ext):
         self.__clear_log(gui_misc.get_log_path(gui_misc.get_pm_name()) + ext)
         self.__clear_log(gui_misc.get_log_path(gui_misc.get_wi_name()) + ext)
         self.__clear_log(gui_misc.get_log_path(gui_misc.get_um_name()) + ext)
コード例 #4
0
ファイル: pmlogging.py プロジェクト: gbulfon/pkg5
 def __clear_logs(self, log_dir, ext):
         self.__clear_log(os.path.join(log_dir, gui_misc.get_pm_name() + ext))
         self.__clear_log(os.path.join(log_dir, gui_misc.get_wi_name() + ext))
         self.__clear_log(os.path.join(log_dir, gui_misc.get_um_name() + ext))