-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
What steps will reproduce the problem?
Consider the following piece of code:
from progressbar import *
import time
pbar = ProgressBar(widgets=[Percentage(), Bar(), ETA()])
for i in pbar(range(3)):
time.sleep(2)
What is the expected output? What do you see instead?
I would expect to start at 0%, then display 33% after t=2s, 66% at t=4s and
finally 100% at t=6, which is also the end of the program.
Instead, it starts at 33%, displays 66% at t=2s, 100% at t=4s and returns at
t=6s....
What version of the product are you using? On what operating system?
Using v2.3 on linux with python 2.6
Please provide any additional information below.
Original issue reported on code.google.com by brice.re...@gmail.com
on 23 Nov 2010 at 8:20