| Widgets/Text |
UserPreferences |
| Tkinter Wiki | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents | moin.sf.net |
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.
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.
http://www.pythonware.com/library/tkinter/introduction/text.htm
http://www.purl.org/tcl/home/man/tcl8.4/TkCmd/text.htm