| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
CanvasWidget --+
|
TreeSegmentWidget
A canvas widget that displays a single segment of a hierarchical tree.
Each TreeSegmentWidget connects a single node widget to a
sequence of zero or more subtree widgets. By default, the bottom of the
node is connected to the top of each subtree by a single line. However,
if the roof attribute is set, then a single triangular
"roof" will connect the node to all of its children.
Attributes:
roof: What sort of connection to draw between the node
and its subtrees. If roof is true, draw a single
triangular "roof" over the subtrees. If roof
is false, draw a line between each subtree and the node. Default
value is false.
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.
color: The color of the lines connecting the node to its
subtrees; and of the outline of the triangular roof. Default value
is '#006060'.
fill: The fill color for the triangular roof. Default
value is '' (no fill).
width: The width of the lines connecting the node to its
subtrees; and of the outline of the triangular roof. Default value
is 1.
orientation: Determines whether the tree branches
downwards or rightwards. Possible values are
'horizontal' and 'vertical'. The default
value is 'vertical' (i.e., branch downwards).
draggable: whether the widget can be dragged by the
user.
The following attributes may also be added in the near future:
linen_color: The color of the line
connecting the node to its nth
subtree.
linen_color: The width of the line
connecting the node to its nth
subtree.
linen_color: The dash pattern of the
line connecting the node to its nth
subtree.
|
|||
|
|||
None
|
|
||
| (any) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list of int
|
|
||
|
|||
|
|||
None
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
None
|
|
||
string
|
|
||
|
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.
|
Set the value of the attribute
|
|
|
Update this canvas widget in response to a change in one of its children.
|
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
|
repr(x)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:54 2008 | http://epydoc.sourceforge.net |