Re: [Tkinter-discuss] Button-press on Menubuttons

2011-11-27 Thread Michael Lange
Thus spoketh Cam Farnell unto us on Sat, 26 Nov 2011 15:54:51 -0400: > Thanks, using the postcommand option does the job but it still strikes > me as odd that a menubutton which has been been activated by clicking > on it doesn't generate a event. > Now, I guess what actually happens is this:

Re: [Tkinter-discuss] Button-press on Menubuttons

2011-11-26 Thread Cam Farnell
Thanks, using the postcommand option does the job but it still strikes me as odd that a menubutton which has been been activated by clicking on it doesn't generate a event. Cam On 11-11-26 02:37 PM, Michael Lange wrote: Hi, Thus spoketh Cam Farnell unto us on Sat, 26 Nov 2011 12:54:09 -0400

Re: [Tkinter-discuss] Button-press on Menubuttons

2011-11-26 Thread Michael Lange
Hi, Thus spoketh Cam Farnell unto us on Sat, 26 Nov 2011 12:54:09 -0400: (..) > > If the user clicks on Menubutton-A then the corresponding handler runs > as expected. If, without making a choice from menu A, the user then > clicks on Menubutton-B then - and this is the nub of the problem - th

[Tkinter-discuss] Button-press on Menubuttons

2011-11-26 Thread Cam Farnell
I have a bunch of Menubuttons in my application, lets call them A, B and C. Each Menubutton is bound to so, before the menu choices are displayed, I can enable/disable some of those choices depending on the situation at the time, and each binding leads to its own Menubutton-specific handler.