126
176
def update(self, msg, current_cnt=None, total_cnt=None):
127
177
"""Update and redraw progress bar."""
131
179
# save these for the tick() function
133
181
self.last_cnt = current_cnt
134
182
self.last_total = total_cnt
147
188
assert current_cnt <= total_cnt