Home | Trees | Indices | Help |
|
---|
|
Tools for graphically displaying and interacting with the objects and processing classes defined by the Toolkit. These tools are primarily intended to help students visualize the objects that they create.
The graphical tools are typically built using canvas widgets,
each of which encapsulates the graphical elements and bindings used to
display a complex object on a Tkinter Canvas
. For example,
NLTK defines canvas widgets for displaying trees and directed graphs, as
well as a number of simpler widgets. These canvas widgets make it easier
to build new graphical tools and demos. See the class documentation for
CanvasWidget
for more information.
The nltk.draw
module defines the abstract
CanvasWidget
base class, and a number of simple canvas
widgets. The remaining canvas widgets are defined by submodules, such as
nltk.draw.tree
.
The nltk.draw
module also defines
CanvasFrame
, which encapsulates a Canvas
and
its scrollbars. It uses a ScrollWatcherWidget
to ensure
that all canvas widgets contained on its canvas are within the scroll
region.
Acknowledgements: Many of the ideas behind the canvas widget system
are derived from CLIG
, a Tk-based grapher for linguistic
data structures. For more information, see the CLIG homepage at:
http://www.ags.uni-sb.de/~konrad/clig.html
|
|||
CanvasWidget A collection of graphical elements and bindings used to display a complex object on a Tkinter Canvas .
|
|||
TextWidget A canvas widget that displays a single string of text. |
|||
SymbolWidget A canvas widget that displays special symbols, such as the negation sign and the exists operator. |
|||
AbstractContainerWidget An abstract class for canvas widgets that contain a single child, such as CanvasBox and CanvasOval .
|
|||
BoxWidget A canvas widget that places a box around a child widget. |
|||
PolygonWidget A canvas widget that places a box around a child widget. |
|||
OvalWidget A canvas widget that places a oval around a child widget. |
|||
ImageWidget A canvas widget that contains an image widget. |
|||
ParenWidget A canvas widget that places a pair of parenthases around a child widget. |
|||
BracketWidget A canvas widget that places a pair of brackets around a child widget. |
|||
SequenceWidget A canvas widget that keeps a list of canvas widgets in a horizontal line. |
|||
StackWidget A canvas widget that keeps a list of canvas widgets in a vertical line. |
|||
SpaceWidget A canvas widget that takes up space but does not display anything. |
|||
ScrollWatcherWidget A special canvas widget that adjusts its Canvas 's
scrollregion to always include the bounding boxes of all of its
children.
|
|||
CanvasFrame A Tkinter frame containing a canvas and scrollbars.
|
|||
ShowText A Tkinter window used to display a text.
|
|
|||
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 19 16:47:04 2009 | http://epydoc.sourceforge.net |