Public Member Functions | Public Attributes | List of all members
progressbar.RotatingMarker Class Reference
Inheritance diagram for progressbar.RotatingMarker:
progressbar.ProgressBarWidget

Public Member Functions

def __init__ (self, markers='|/-\\')
 
def update (self, pbar)
 
- Public Member Functions inherited from progressbar.ProgressBarWidget
def update (self, pbar)
 

Public Attributes

 markers
 
 curmark
 

Detailed Description

Definition at line 138 of file progressbar.py.

Constructor & Destructor Documentation

def progressbar.RotatingMarker.__init__ (   self,
  markers = '|/-\\' 
)

Definition at line 140 of file progressbar.py.

140  def __init__(self, markers='|/-\\'):
141  self.markers = markers
142  self.curmark = -1
def __init__(self, markers='|/-\\')
Definition: progressbar.py:140

Member Function Documentation

def progressbar.RotatingMarker.update (   self,
  pbar 
)

Definition at line 143 of file progressbar.py.

143  def update(self, pbar):
144  if pbar.finished:
145  return self.markers[0]
146  self.curmark = (self.curmark + 1)%len(self.markers)
147  return self.markers[self.curmark]
148 
def update(self, pbar)
Definition: progressbar.py:143

Member Data Documentation

progressbar.RotatingMarker.curmark

Definition at line 142 of file progressbar.py.

progressbar.RotatingMarker.markers

Definition at line 141 of file progressbar.py.


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