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