tkinter entry/text widget

Jason Harper JasonHarper at
Mon Mar 15 20:59:46 CET 2004

Tk Text widgets do not support indexes in the form of single integers,
since their internal representation is NOT a contiguous block of memory
(which would be horribly inefficient for insertions at the top of a
large document).  Instead, you must use indexes of the form
"line.column", where line starts at 1, and column starts at 0.  To get
the entire text, you'd use: .get("1.0", END) .  Other allowed forms of
indexes are given in the documentation.
	Jason Harper

More information about the Python-list mailing list