Public Member Functions | List of all members
progressbar.ReverseBar Class Reference
Inheritance diagram for progressbar.ReverseBar:
progressbar.Bar progressbar.ProgressBarWidgetHFill

Public Member Functions

def update (self, pbar, width)
 
- Public Member Functions inherited from progressbar.Bar
def __init__ (self, marker='#', left='|', right='|')
 
def update (self, pbar, width)
 
- Public Member Functions inherited from progressbar.ProgressBarWidgetHFill
def update (self, pbar, width)
 

Additional Inherited Members

- Public Attributes inherited from progressbar.Bar
 marker
 
 left
 
 right
 

Detailed Description

Definition at line 183 of file progressbar.py.

Member Function Documentation

def progressbar.ReverseBar.update (   self,
  pbar,
  width 
)

Definition at line 185 of file progressbar.py.

185  def update(self, pbar, width):
186  percent = pbar.percentage()
187  cwidth = width - len(self.left) - len(self.right)
188  marked_width = int(percent * cwidth // 100)
189  m = self._format_marker(pbar)
190  bar = (self.left + (m*marked_width).rjust(cwidth) + self.right)
191  return bar
192 
def _format_marker(self, pbar)
Definition: progressbar.py:170
def update(self, pbar, width)
Definition: progressbar.py:185

The documentation for this class was generated from the following file: