Package flumotion :: Package extern :: Package log :: Module termcolor :: Class ProgressBar
[hide private]

Class ProgressBar

source code

A 3-line progress bar, which looks like:

   20% [===========----------------------------------]
                      progress message

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, header) source code
update(self, percent, message) source code
clear(self) source code
Class Variables [hide private]
  BAR = '%3d%% ${GREEN}[${BOLD}%s%s${NORMAL}${GREEN}]${NORMAL}\n'
  HEADER = '${BOLD}${CYAN}%s${NORMAL}\n\n'
Instance Variables [hide private]
true if we haven't drawn the bar yet.