(any)
|
|
|
__init__(self,
canvas,
t,
make_node=<class 'nltk_lite.draw.TextWidget'>,
make_leaf=<class 'nltk_lite.draw.TextWidget'>,
**attribs)
Create a new canvas widget. |
source code
|
|
None
|
|
|
_make_collapsed_trees(self,
canvas,
t,
key) |
source code
|
|
|
|
None
|
|
list of int
|
_tags(self)
Returns:
a list of canvas tags for all graphical elements managed by this
canvas widget, not including graphical elements managed by its child
widgets. |
source code
|
|
|
bind_click_leaves(self,
callback,
button=1)
Add a binding to all leaves. |
source code
|
|
|
bind_click_nodes(self,
callback,
button=1)
Add a binding to all nodes. |
source code
|
|
|
bind_click_trees(self,
callback,
button=1)
Add a binding to all tree segments. |
source code
|
|
|
bind_drag_leaves(self,
callback,
button=1)
Add a binding to all leaves. |
source code
|
|
|
bind_drag_nodes(self,
callback,
button=1)
Add a binding to all nodes. |
source code
|
|
|
bind_drag_trees(self,
callback,
button=1)
Add a binding to all tree segments. |
source code
|
|
|
|
|
|
|
toggle_collapsed(self,
treeseg)
Collapse/expand a tree. |
source code
|
|
Inherited from CanvasWidget :
__repr__ ,
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__
|