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.
Inherited from AbstractContainerWidget: __repr__, child, set_child
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__

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)

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