pdk.Gui.AuxClasses ($Date: 2002/12/04 10:16:36 $)
index
pdk/Gui/AuxClasses.py

Auxilliary classes for the pdk widgets.

FOG 08.2001

 
Classes
            
xml.dom.ext.Visitor.Visitor
WidgetDataSignallingVisitor
WidgetDataWalker
_DepthVisitor
DepthIndexVisitor
DepthUnindexVisitor
__builtin__.dict(__builtin__.object)
WidgetData
WidgetInfo
 
class DepthIndexVisitor(_DepthVisitor)
     
Purpose:an indexing visitor

 
   Methods defined here:
__init__(self, node2DepthD)
 
class DepthUnindexVisitor(_DepthVisitor)
     
Purpose:an un-indexing visitor

 
   Methods defined here:
__init__(self, node2DepthD)
 
class WidgetData(__builtin__.dict)
     
Purpose:basic container class for widget data

 
  
Method resolution order:
WidgetData
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, **initDataD)
copy(self)
reset(self, full=0)
initialize to defaults. Unless full is true, only the static data are deleted.
validate(self)
checks the validity of the widget data. Returns True on success and a formatted error string on failure.

Data and non-method functions defined here:
DEFAULT_DYNAMIC_DATA = {'parentwidget': None, 'widget': None, 'wxid': None}
DEFAULT_XML_DATA = {'childidstrings': [], 'classname': None, 'idstring': None, 'initargs': {}, 'initoptions': {}, 'instantiateoptions': {}, 'internaloptions': {}, 'layout': {}, 'parentidstring': None, 'plugin': None}
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'WidgetData' objects>
 
class WidgetDataSignallingVisitor(xml.dom.ext.Visitor.Visitor)
     
Purpose:signals the data associated with widget nodes

 
   Methods defined here:
__init__(self, domTree, signal)
Parameters:
  • domTree : the DOM tree to be traversed by the visitor

  • signal : a signal constant to be emitted with the widget data for

    each element node

visit(self, node, idString, parentIdString)
 
class WidgetDataWalker
     
Purpose:provides level-order traversal of a GUI DOM tree, only visiting widget definition nodes

 
   Methods defined here:
__init__(self, visitor, startNode, depth=None)
run(self)
step(self)
 
class WidgetInfo(__builtin__.dict)
     
Purpose:container class for widget information
Detail:widget information differs from mere widget data in that it has a runtime context nameSpaceD which is used to resolve references and to evaluate expressions.

 
  
Method resolution order:
WidgetInfo
__builtin__.dict
__builtin__.object

Methods defined here:
__getitem__(self, key)
__init__(self, nameSpaceD, initWidgetData=None)
__setitem__(self, itemName, itemValue)
reset(self)
setdefault(self, key, defaultValue)
update(self, data)
values(self)

Data and non-method functions defined here:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'WidgetInfo' objects>
 
class _DepthVisitor
     
Purpose:visitor building or clearing a mapping of node to node depth
Detail:mode is either VISITMODE_ENTER (builds a dictionary { <node> : <node depth> } or VISITMODE_REMOVE (deletes entries from the node depth dictionary).

 
   Methods defined here:
__init__(self, node2DepthD, mode)
visit(self, node)
 
Author
            
$Author: gathmann $