pcisim.lib.widget.widgetbase
index
../../src/pcisim/lib/widget/widgetbase.py

This module contains the base class of all the widgets.

 
Classes
       
__builtin__.object
WidgetBase

 
class WidgetBase(__builtin__.object)
    Abstract class which serves as a base for widget creation.
 
A subclass is required to implement the following methods:
    _doscale(self) : widget scaling logic
 
@NOTES
    For multi-inheritance to take place corretly, call this class
    constructor *after* any other class base.
 
  Methods defined here:
__init__(self, upos, usize)
@PARAMS
    (list[2]) upos : widget position in units
    (list[2]) usize : widget size in units
 
@NOTES
    This constructor calls the instance _doscale() method to scale
    widget just after initialization.
__str__(self)
scale(self, newunit)
Scales the widget using an unitsize.
 
@PARAMS
    | (list[2]) newunit : custom unit to use
    | (None) newunit : use default unit size
 
@NOTES
    Children widgets will be scaled as well.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['WidgetBase']