Re: Tkinter unbinding

2008-12-19 Thread Peter Otten
Roger wrote: >> either. I'd suggest a plain-python workaround along the lines of > > Wow. You just blew my mind. I'm going to play with this. Thanks a > lot, I've really learned a lot in just that small bit. I don't have > much experience in playing with a lot of the 'private' calls such as >

Re: Tkinter unbinding

2008-12-19 Thread Roger
> either. I'd suggest a plain-python workaround along the lines of Wow. You just blew my mind. I'm going to play with this. Thanks a lot, I've really learned a lot in just that small bit. I don't have much experience in playing with a lot of the 'private' calls such as __call__. I need to do

Re: Tkinter unbinding

2008-12-19 Thread Peter Otten
Roger wrote: >> Note that I took out the lambdas and gave event arguments to the >> functions; if you did that on purpose, because you need to call the same >> functions without events, then just ignore that... >> SO, the other workaround, which I've used, is to bind the event to a >> generic func

Re: Tkinter unbinding

2008-12-19 Thread Roger
> Note that I took out the lambdas and gave event arguments to the > functions; if you did that on purpose, because you need to call the same > functions without events, then just ignore that... > SO, the other workaround, which I've used, is to bind the event to a > generic function, and have that

Re: Tkinter unbinding

2008-12-19 Thread Bad Mutha Hubbard
Bad Mutha Hubbard wrote: > Roger wrote: > >> I've done a lot of googling for this topic and I fear that it's not >> possible. I have a widget that is overloaded with several bindings. >> I want to be able to unbind one method form the same Event without >> destroying all the other bindings to the

Re: Tkinter unbinding

2008-12-19 Thread Bad Mutha Hubbard
Roger wrote: > I've done a lot of googling for this topic and I fear that it's not > possible. I have a widget that is overloaded with several bindings. > I want to be able to unbind one method form the same Event without > destroying all the other bindings to the same event that's associated > t

Re: Tkinter unbinding

2008-12-18 Thread r
On Dec 18, 1:48 pm, Roger wrote: > On Dec 18, 12:49 pm, r wrote: > > > Maybe someone will chime in with an answer, sorry i could not help. > > ponder this, i must... > > Regardless, thanks for your help! I truly appreciate it. > > Roger. 'no problema mi amigo!'.to_english(no problem my friend!)

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread r
Maybe someone will chime in with an answer, sorry i could not help. ponder this, i must... -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 11:40 am, r wrote: > Yea, my answer was really not a helping answer(sorry) just showing > exactly why this will not work with w.unbind(). Why do you need two > separate functions to bind the same event?? You cannot combine the > two?? I can't combine the two in my app unfortunately. T

Re: Tkinter unbinding

2008-12-18 Thread r
Yea, my answer was really not a helping answer(sorry) just showing exactly why this will not work with w.unbind(). Why do you need two separate functions to bind the same event?? You cannot combine the two?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
>funcid1 = root.bind("<1>", lambda e: test()) >funcid2 = root.bind("<1>", lambda e: test2(), add='+') >root.unbind("<1>", funcid2) Isn't this what I've done in my example code? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread r
w.unbind ( sequence, funcid=None ) This method deletes bindings on w for the event described by sequence. If the second argument is a callback bound to that sequence, that callback is removed and the rest, if any, are left in place. If the second argument is omitted, all bindings are deleted. see

Tkinter unbinding

2008-12-18 Thread Roger
I've done a lot of googling for this topic and I fear that it's not possible. I have a widget that is overloaded with several bindings. I want to be able to unbind one method form the same Event without destroying all the other bindings to the same event that's associated to the same widget. For