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 . | |
None
|
Arrange the child widgets of this canvas widget. |
list of int
|
Return a list of canvas tags for all graphical elements managed by this canvas widget, not including graphical elements managed by its child widgets. |
None
|
Update this canvas widget in response to a change in one of its children. |
_xalign(self,
left,
right)
| |
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 ,
_add_child_widget ,
_remove_child_widget
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
Inherited from CanvasWidget :
__callbacks ,
__canvas ,
__children ,
__drag_x ,
__drag_y ,
__draggable ,
__parent ,
__press ,
__updating
|
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 .
|
_manage(self)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 themanage method on this canvas widget
or any of its ancestors.
|
_tags(self)
|
_update(self, child)Update this canvas widget in response to a change in one of its children.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 | http://epydoc.sf.net |