Tkinter.Text - create and manipulate textbox widgets

A text widget, as the name implies, can display text, but it can do more than that. It has various text-editing and formatting capabilities built-in, and also can have images and controls embedded in it.

Base Classes

../Widget, ../BaseWidget, ../Pack, ../Place, ../Grid, ../Misc

Indexing

Items

Tags

Gotchas

Each line needs to have a newline character '\n' at the end. If you try to insert text using line.column indexing on, say, line x, but line x-1 doesn't have a newline at the end, the Text widget will add the text to the end of line x-1 instead.

References

pydoc Tkinter.Text

http://www.pythonware.com/library/tkinter/introduction/text.htm

http://wiki.tcl.tk/text

http://www.purl.org/tcl/home/man/tcl8.4/TkCmd/text.htm

tkinter: Widgets/Text (last edited 2010-07-26 11:59:13 by localhost)