Package nltk :: Package draw :: Module util :: Class OvalWidget
[hide private]
[frames] | no frames]

type OvalWidget

source code

         object --+        
                  |        
       CanvasWidget --+    
                      |    
AbstractContainerWidget --+
                          |
                         OvalWidget

A canvas widget that places a oval around a child widget.

Attributes:

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

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

Class Variables [hide private]
  RATIO = 1.41421356237
Method Details [hide private]

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

source code 

Create a new oval 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: CanvasWidget.__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)

__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)

_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)

_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)