A Pmw style widget for exploring the contents of a tree data structure.
Methods
|
|
__init__
createInterior
enter_node
interior
leave_node
select_node
|
|
__init__
|
__init__ (
self,
parent=None,
**kw,
)
Create a TreeExplorer widget.
Create a new instance with specified parent widget and the
treedata to be displayed.
Options
-
ipadx Internal X padding.
-
ipady Internal Y padding.
-
indent=20 How much to indent each child node of the tree.
-
activebackground Color to use when displaying a node as
active.
-
height Height of the widget.
|
|
createInterior
|
createInterior ( self )
Create widgets in our interior.
|
|
enter_node
|
enter_node ( self, node )
Called when the mouse enters the node area.
|
|
interior
|
interior ( self )
|
|
leave_node
|
leave_node ( self, node )
Called when the mouse leaves the node area.
|
|
select_node
|
select_node ( self, node )
Called when a node is selected by clicking on the
text.
|
|