in reply to Tk Text highlight color
If I read the documentation correctly, all you need to do is $text->tagRaise('sel', 'selectedTerm'); to give the selection tag a higher priority than the selected-term tag.
Using the <<Selection>> event should make your code more efficient if the user often clicks for reasons other than selecting text.
|
|---|