| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
CanvasWidget --+
|
TreeWidget
A canvas widget that displays a single Tree.
TreeWidget manages a group of
TreeSegmentWidgets that are used to display a
Tree.
Attributes:
node_attr: Sets the attribute
attr on all of the node widgets for
this TreeWidget.
node_attr: Sets the attribute
attr on all of the leaf widgets for
this TreeWidget.
loc_attr: Sets the attribute
attr on all of the location widgets
for this TreeWidget (if it was built from a
Tree). Note that location widgets are
TextWidgets.
xspace: The amount of horizontal space to leave between
subtrees when managing this widget. Default value is 10.
yspace: The amount of space to place between the node
and its children when managing this widget. Default value is 15.
line_color: The color of the lines connecting each
expanded node to its subtrees.
roof_color: The color of the outline of the triangular
roof for collapsed trees.
roof_fill: The fill color for the triangular roof for
collapsed trees.
width
orientation: Determines whether the tree branches
downwards or rightwards. Possible values are
'horizontal' and 'vertical'. The default
value is 'vertical' (i.e., branch downwards).
shapeable: whether the subtrees can be independantly
dragged by the user. THIS property simply sets the
DRAGGABLE property on all of the
TreeWidget's tree segments.
draggable: whether the widget can be dragged by the
user.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
None
|
|
||
| (any) |
|
||
list of int
|
|
||
None
|
|
||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create a new canvas widget. This constructor should only be called by subclass constructors; and it should be called only after the subclass has constructed all graphical canvas objects and registered all child widgets.
|
Return the
|
Return the
|
Set the value of the attribute
|
|
|
Arrange the child widgets of this canvas widget. This method is
called when the canvas widget is initially created. It is also called if
the user calls the
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:54 2008 | http://epydoc.sourceforge.net |