Event about a selection
sabathe at emi.u-bordeaux.fr
Tue Apr 22 19:00:16 CEST 2003
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 ?
index = myText.tag_ranges(SEL)
myText.tag_add('valid', index, index)
This works, but I'd like to modify the selection with a "double-clic".
It works only with '<ButtonRelease-1>'.
I've read that this key returns the position of the beginning and the
position of the ending of this selection.
I would like to do the same thing with a "double-clic" only.
I don't know what to do because it doesn't work, even if I disactivate
Thank you in advance for helping me.
More information about the Python-list