Logo Search packages:      
Sourcecode: rapid-spring version File versions  Download package

def rapid::progressbar::ProgressBar::__call__ (   self,
  value 
)
Increases the amount by value, and writes to stdout. Prints a
    carriage return first, so it will overwrite the current line in
    stdout.

Definition at line 72 of file progressbar.py.

                               :
            """ Increases the amount by value, and writes to stdout. Prints a
                carriage return first, so it will overwrite the current line in
                stdout."""
            if self.amount < self.max:
                  print '\r',
                  self.update_amount(self.amount + value)
                  sys.stdout.write(str(self))
                  sys.stdout.write(self.amount < self.max and "\r" or "\n")
                  sys.stdout.flush()


Generated by  Doxygen 1.6.0   Back to index