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