CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
progressbar.FormatLabel Class Reference
Inheritance diagram for progressbar.FormatLabel:
progressbar.Timer progressbar.Widget

Public Member Functions

def __init__ (self, format)
 
def update (self, pbar)
 
- Public Member Functions inherited from progressbar.Timer
def __init__ (self, format='Elapsed Time:%s')
 
def update (self, pbar)
 
- Public Member Functions inherited from progressbar.Widget
def update (self, pbar)
 

Public Attributes

 format
 
- Public Attributes inherited from progressbar.Timer
 format
 

Static Public Attributes

 mapping
 
- Static Public Attributes inherited from progressbar.Timer
 TIME_SENSITIVE
 
- Static Public Attributes inherited from progressbar.Widget
 TIME_SENSITIVE
 

Static Private Attributes

 __slots__
 

Additional Inherited Members

- Static Public Member Functions inherited from progressbar.Timer
def format_time (seconds)
 

Detailed Description

Definition at line 132 of file progressbar.py.

Constructor & Destructor Documentation

def progressbar.FormatLabel.__init__ (   self,
  format 
)

Definition at line 146 of file progressbar.py.

146  def __init__(self, format):
147  self.format = format
148 
def __init__(self, format)
Definition: progressbar.py:146

Member Function Documentation

def progressbar.FormatLabel.update (   self,
  pbar 
)

Definition at line 149 of file progressbar.py.

References Formatter.SimpleAsciiFormatter.format, progressbar.Timer.format, Formatter.SimpleHTMLFormatter.format, and create_public_lumi_plots.transform.

Referenced by progressbar.ProgressBar.__next__(), MatrixUtil.Matrix.__setitem__(), MatrixUtil.Steps.__setitem__(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.LineDecayView.LineDecayContainer.deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), progressbar.ProgressBar.finish(), Vispa.Gui.MenuWidget.MenuWidget.leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget.mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer.mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer.objectMoved(), MatrixUtil.Steps.overwrite(), Vispa.Views.LineDecayView.LineDecayContainer.removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget.removePorts(), Vispa.Gui.FindDialog.FindDialog.reset(), Vispa.Gui.PortConnection.PointToPointConnection.select(), Vispa.Gui.VispaWidget.VispaWidget.select(), Vispa.Views.LineDecayView.LineDecayContainer.select(), Vispa.Gui.VispaWidget.VispaWidget.setText(), Vispa.Gui.VispaWidget.VispaWidget.setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().

149  def update(self, pbar):
150  context = {}
151  for name, (key, transform) in self.mapping.items():
152  try:
153  value = getattr(pbar, key)
154 
155  if transform is None:
156  context[name] = value
157  else:
158  context[name] = transform(value)
159  except: pass
160 
161  return self.format % context
162 
def update(self, pbar)
Definition: progressbar.py:149

Member Data Documentation

progressbar.FormatLabel.__slots__
staticprivate

Definition at line 145 of file progressbar.py.

progressbar.FormatLabel.format
progressbar.FormatLabel.mapping
static

Definition at line 135 of file progressbar.py.