| Home | Trees | Index | Help |
|
|---|
| Package nltk_lite :: Package draw :: Class StackWidget |
|
object--+ |CanvasWidget--+ | StackWidget
A canvas widget that keeps a list of canvas widgets in a vertical line.
Attributes:align: The horizontal alignment of the children.
Possible values are 'left', 'center', and
'right'. By default, children are center-aligned.
space: The amount of vertical space to place between
children. By default, one pixel of space is used.
ordered: If true, then keep the children in their
original order.
| Method Summary | |
|---|---|
Create a new stack widget. | |
| (any) |
Return the value of the attribute attr. |
string
|
Return a string representation of this canvas widget. |
None
|
Set the value of the attribute attr to
value. |
list of CanvasWidget
|
Return a list of the hierarchical children of this canvas widget. |
Insert a child canvas widget before a given index. | |
Remove the given child canvas widget. | |
Replace the child canvas widget oldchild with
newchild. | |
Inherited from CanvasWidget:
bbox,
bind_click,
bind_drag,
canvas,
child_widgets,
destroy,
height,
hidden,
hide,
manage,
move,
moveto,
parent,
show,
tags,
unbind_click,
unbind_drag,
update,
width
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
| |
| Method Details |
|---|
__init__(self,
canvas,
*children,
**attribs)
Create a new stack widget.
|
__getitem__(self,
attr)
|
__repr__(self)
|
__setitem__(self,
attr,
value)
Set the value of the attribute |
children(self)
|
insert_child(self, index, child)Insert a child canvas widget before a given index.
|
remove_child(self, child)Remove the given child canvas widget.child's parent
will be set ot None.
|
replace_child(self, oldchild, newchild)Replace the child canvas widgetoldchild with
newchild. newchild must not have a parent.
oldchild's parent will be set to None.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 | http://epydoc.sf.net |