Package nltk :: Package draw :: Class ParenWidget
[hide private]
[frames] | no frames]

Class ParenWidget

source code

         object --+        
                  |        
       CanvasWidget --+    
                      |    
AbstractContainerWidget --+
                          |
                         ParenWidget

A canvas widget that places a pair of parenthases around a child widget.

Attributes:

Instance Methods [hide private]
(any)
__getitem__(self, attr)
Returns: the value of the attribute attr.
source code
 
__init__(self, canvas, child, **attribs)
Create a new parenthasis widget.
source code
None
__setitem__(self, attr, value)
Set the value of the attribute attr to value.
source code
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
None
_update(self, child)
Update this canvas widget in response to a change in one of its children.
source code

Inherited from AbstractContainerWidget: __repr__, child, set_child

Inherited from AbstractContainerWidget (private): _manage

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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, attr)
(Indexing operator)

source code 
Returns: (any)
the value of the attribute attr. See the class documentation for a list of attributes supported by this canvas widget.
Overrides: CanvasWidget.__getitem__
(inherited documentation)

__init__(self, canvas, child, **attribs)
(Constructor)

source code 

Create a new parenthasis widget.

Parameters:
  • canvas (Tkinter.Canvas) - This canvas widget's canvas.
  • child (CanvasWidget) - The child widget. child must not have a parent.
  • attribs - The new canvas widget's attributes.
Overrides: AbstractContainerWidget.__init__

__setitem__(self, attr, value)
(Index assignment operator)

source code 

Set the value of the attribute attr to value. See the class documentation for a list of attributes supported by this canvas widget.

Returns: None
Overrides: CanvasWidget.__setitem__
(inherited documentation)

_tags(self)

source code 
Returns: list of int
a list of canvas tags for all graphical elements managed by this canvas widget, not including graphical elements managed by its child widgets.
Overrides: CanvasWidget._tags
(inherited documentation)

_update(self, child)

source code 

Update this canvas widget in response to a change in one of its children.

Parameters:
  • child - The child that changed.
Returns: None
Overrides: CanvasWidget._update
(inherited documentation)