Package portage :: Module output :: Class TermProgressBar
[hide private]

Class TermProgressBar

source code

 object --+    
          |    
ProgressBar --+
              |
             TermProgressBar

A tty progress bar similar to wget's.

Instance Methods [hide private]
 
__init__(self, fd=sys.stdout, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set(self, value, maxval=None)
Sets the progress bar's curval to value, and also maxval to max if the latter is provided.
source code
 
_display_image(self, image) source code
 
_create_image(self) source code

Inherited from ProgressBar: inc, label, title

Inherited from ProgressBar (private): _set_desc

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from ProgressBar: curval, maxval

Inherited from object: __class__

Method Details [hide private]

__init__(self, fd=sys.stdout, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set(self, value, maxval=None)

source code 

Sets the progress bar's curval to value, and also maxval to max if the latter is provided. value is first coerced between 0 and maxval. The thermometer bar is updated to reflect the changes, including a change from indeterminate to determinate or vice versa.

Overrides: ProgressBar.set
(inherited documentation)