Tkinter binding list

Rodrigo Benenson rodrigob at elo.utfsm.cl
Fri Dec 5 10:57:27 EST 2003


Hi,

I have a weird need in tkinter. If I have a widget I can *set* a binding

.bind("<the event>", the_callback)


I also can *append* a binding

.bind("<the event>", the_second_callback, "+")

but now, I need to *replace* a callback. The easier way is to obtain the
bindings, delete them all, and rebind the new list.

So, how can I replace a callback, when there are more than one binding ?
or, as an equivalente question,

how can I obtain the list of callbacks binded to widget event ?

Thanks,
RodrigoB.







More information about the Python-list mailing list