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