Python tkinter question

Fredrik Lundh effbot at telia.com
Mon Feb 14 16:38:34 EST 2000


MikeZ <mike.zaharkin at westgroup.com> wrote:
>     I am interested in creating a text control in tkinter and then allow
the
> user the highlight an area of text in this control.
>
>     I am having a problem trying to figure out how to get the text that
was
> highlighted by the user. Is there an event and/or method that I can use
from
> the text control.

text = w.get(SEL_FIRST, SEL_LAST)

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

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list