Event about a selection
John J. Lee
jjl at pobox.com
Tue Apr 22 15:18:53 EDT 2003
thomas sabathe <sabathe at emi.u-bordeaux.fr> writes:
> In a text, a selection appears when a "double-clic" is done.
> But I don't know how to get this selection back. How can I do ?
>
> For example:
>
> def modif(event):
> index = myText.tag_ranges(SEL)
> myText.tag_add('valid', index[0], index[1])
>
> myText.bind('<ButtonRelease-1>',modif)
[...]
Give us a clue, Thomas: are you using a GUI toolkit here? If so, say
which one you're using in the subject line.
John
More information about the Python-list
mailing list