Getting Value From Tkinter Text Object

Fredrik Lundh fredrik at pythonware.com
Thu Feb 15 08:49:31 CET 2001


Scott Billings wrote:
> The only option I can find that even seems to be close to what I want, is
> the get() method, which expects a starting and ending point. Starting point
> should be easy enough, but I have no way of knowing what the ending point
> will be.

http://www.pythonware.com/library/tkinter/introduction/text.htm
=> concepts, patterns

    "END (or "end") corresponds to the position just after the last
    character in the buffer.

    "To fetch the text contents of the widget, use the get method:

        contents = text.get(1.0, END)

Cheers /F





More information about the Python-list mailing list