예제 #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)