示例#1
0
    def on_add_elem(self, runner):
        """Called once the runner found a new element."""
        elem = runner.element
        self.model.add_path(elem['path'], Column.make_row(elem))

        # Decide how much progress to show (or just move a bit)
        tick = (elem.get('progress', 0) / 100.0) or None
        self.show_progress(tick)
示例#2
0
文件: runner.py 项目: FihlaTV/rmlint
    def on_add_elem(self, runner):
        """Called once the runner found a new element."""
        elem = runner.element
        self.model.add_path(elem['path'], Column.make_row(elem))

        # Decide how much progress to show (or just move a bit)
        tick = (elem.get('progress', 0) / 100.0) or None
        self.show_progress(tick)
示例#3
0
 def push(size, path):
     """Helper for pushing a dummy path"""
     model.add_path(path, Column.make_row({'size': size}), True)
示例#4
0
文件: chart.py 项目: FihlaTV/rmlint
 def push(size, path):
     """Helper for pushing a dummy path"""
     model.add_path(path, Column.make_row({'size': size}), True)