Re: bind with class inhibits -command option



Alexandre Ferrieux wrote:
On May 26, 8:41 pm, moi <m...@xxxxxxx> wrote:
What is it you are trying to accomplish?
Just want to change buttons default behaviour and keep -command option
active. I'll, so, put this line in my callback scripts.

I think it would be much better to use the "+" syntax in front of your
callback:

bind Button <Enter> {+whatever you want}

as it is the documented, idiomatic form of incremental override in Tk.

Or better yet, use bindtags.

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages