Is it possible to trap text selection via the keyboard AND mouse as a selection/selection_change type of event? (I know I can trap selection via the keyboard by watching every keypress and comparing selection range – but I see no way to detect selection via the mouse or as a discrete event by itself)
I’ve looked at the following Tkinter event documentation and don’t see a selection/selection_changed type of event.
http://infohost.nmt.edu/tcc/help/pubs/tkinter/events.html
Perhaps some of you Tkinter/Tk veterans might have some clever ideas?
Thank you,
Malcolm
The text widget generates a
<<Selection>>event, and the listbox generates a<<ListboxSelect>>event. Do either of those meet your needs?