Package igraph :: Package app :: Module shell :: Class ProgressBar
[hide private]
[frames] | no frames]

Class ProgressBar

A 2-line progress bar, which looks like:

                           Header
   20% [===========----------------------------------]

The progress bar is colored, if the terminal supports color output; and adjusts to the width of the terminal.

Instance Methods [hide private]
 
__init__(self, term)
 
clear(self)
 
update(self, percent, message)
Class Variables [hide private]
  BAR = '%3d%% ${GREEN}[${BOLD}%s%s${NORMAL}${GREEN}]${NORMAL}'
  HEADER = '${BOLD}${CYAN}%s${NORMAL}\n'