Package reportlab :: Package graphics :: Module widgetbase :: Class Widget
[show private | hide private]
[frames | no frames]

Class Widget

             PropHolder --+
                          |
_DrawTimeResizeable --+   |
                      |   |
               UserNode --+
                          |
                         Widget

Known Subclasses:
_ChromosomeComponent

Base for all user-defined widgets. Keep as simple as possible. Does not inherit from Shape so that we can rewrite shapes without breaking widgets and vice versa.
Method Summary
  demo(self)
  draw(self)
  getBounds(self)
Return outer boundary as x1,y1,x2,y2.
  provideNode(self)
Override this to create your own node.
    Inherited from PropHolder
  __setattr__(self, name, value)
By default we verify.
  dumpProperties(self, prefix)
Convenience.
  getProperties(self, recur)
Returns a list of all properties which can be edited and which are not marked as private.
  setProperties(self, propDict)
Permits bulk setting of properties.
  verify(self)
If the _attrMap attribute is not None, this checks all expected attributes are present; no unwanted attributes are present; and (if a checking function is found) checks each attribute has a valid value.
    Inherited from _DrawTimeResizeable
  _drawTimeResize(self, w, h)

Class Variable Summary
    Inherited from PropHolder
NoneType _attrMap = None                                                                  

Method Details

getBounds(self)

Return outer boundary as x1,y1,x2,y2. Can be overridden for efficiency

provideNode(self)

Override this to create your own node. This lets widgets be added to drawings; they must create a shape (typically a group) so that the renderer can draw the custom node.
Overrides:
reportlab.graphics.shapes.UserNode.provideNode (inherited documentation)

Generated by Epydoc 2.1 on Sat Jul 16 15:48:58 2005 http://epydoc.sf.net