Tkinter binding list

Eric Brunel eric.brunel at N0SP4M.com
Mon Dec 8 04:12:52 EST 2003


Rodrigo Benenson wrote:
> 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.

What's the difference between "setting" and "replacing" for you? If you set a 
callback doing a "return 'break'" at the end, the event should execute your 
binding and nothing else. Can you post a script showing exactly what you want to 
do and what problems you have?
-- 
- Eric Brunel <eric dot brunel at pragmadev dot com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com





More information about the Python-list mailing list