Display a text progress bar.
A final line feed is printed when the ProgressBar is garbage
collected. Explicitly deleting the object can force a line feed when
desired. As an alternative, using the ProgressBar as a context manager
will ensure a final line feed is printed when the code block within which
the ProgressBar is being used exits.
|
|
|
|
|
|
|
__init__(self,
text=u' Working ' ,
max=1,
value=0,
textwidth=24,
fid=None,
theme=None) |
source code
|
|
|
increment(self,
delta=1,
text=None)
Redraw the progress bar, incrementing the value by delta (default=1)
and optionally changing the text. |
source code
|
|
|
iterate(self,
iterable,
format=u' %s ' ,
print_every=1)
Use as a target of a for-loop to issue a progress update for every
iteration. |
source code
|
|
|
|
|
|
|
update(self,
value=None,
text=None)
Redraw the progress bar, optionally changing the value and text and
return the (possibly new) value. |
source code
|
|