Closed GoogleCodeExporter closed 9 years ago
Can you post a piece of code that reproduces the problem?
I think you're probably setting the maxval to zero or using it with a sequence
with size zero.
Original comment by nilton.v...@gmail.com
on 15 Jul 2011 at 11:40
Yeah that's likely the case because maxval is set algorithmically. However, it
is easy for progressbar to avoid dividing by zero.
Original comment by bjou...@gmail.com
on 16 Jul 2011 at 6:14
This patch fixes a problem in the Bar widget where it will divide by zero if
its maxval is 0.
Original comment by amch...@gmail.com
on 24 Oct 2011 at 10:11
Attachments:
I'm applying a similar fix. Thanks for the patch.
Original comment by nilton.v...@gmail.com
on 25 Oct 2011 at 8:01
Done in
http://code.google.com/p/python-progressbar/source/detail?r=e2db1f229a9cfca6bc60
87f10c307d1668b8c709
Original comment by nilton.v...@gmail.com
on 25 Oct 2011 at 8:03
Original issue reported on code.google.com by
bjou...@gmail.com
on 15 Jul 2011 at 10:24