(self, task_num=0, bar_width=50, start=True, file=sys.stdout)
| 26 | """A progress bar which can print the progress.""" |
| 27 | |
| 28 | def __init__(self, task_num=0, bar_width=50, start=True, file=sys.stdout): |
| 29 | self.task_num = task_num |
| 30 | self.bar_width = bar_width |
| 31 | self.completed = 0 |
| 32 | self.file = file |
| 33 | if start: |
| 34 | self.start() |
| 35 | |
| 36 | @property |
| 37 | def terminal_width(self): |