Package nltk_lite :: Package draw :: Class OvalWidget
[show private | hide private]
[frames | no frames]

Type OvalWidget

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


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

Attributes:
Method Summary
  __init__(self, canvas, child, **attribs)
Create a new oval widget.
(any) __getitem__(self, attr)
Return the value of the attribute attr.
None __setitem__(self, attr, value)
Set the value of the attribute attr to value.
list of int _tags(self)
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(self, child)
Update this canvas widget in response to a change in one of its children.
Inherited from AbstractContainerWidget: __repr__, child, set_child, _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, _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

Class Variable Summary
float RATIO = 1.4142135623730949                                                    

Method Details

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

Create a new oval widget.
Parameters:
canvas - This canvas widget's canvas.
           (type=Tkinter.Canvas)
child - The child widget. child must not have a parent.
           (type=CanvasWidget)
attribs - The new canvas widget's attributes.
Overrides:
nltk_lite.draw.AbstractContainerWidget.__init__

__getitem__(self, attr)
(Indexing operator)

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

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

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:
nltk_lite.draw.CanvasWidget.__setitem__ (inherited documentation)

_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.
           (type=list of int)
Overrides:
nltk_lite.draw.CanvasWidget._tags (inherited documentation)

_update(self, child)

Update this canvas widget in response to a change in one of its children.
Parameters:
child - The child that changed.
           (type=CanvasWidget)
Returns:
None
Overrides:
nltk_lite.draw.CanvasWidget._update (inherited documentation)

Class Variable Details

RATIO

Type:
float
Value:
1.4142135623730949                                                    

Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 http://epydoc.sf.net