Getting Value From Tkinter Text Object

Fredrik Lundh fredrik at
Thu Feb 15 02:49:31 EST 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.
=> 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