I have created a button widget with a button click binding. The button
initially has a state=disabled. I can see the greyed out version of
the button in the GUI. But If I click on the button it still invokes
the callback/binding function.

Any suggestions as to why the callback is being invoked even though
the button has a disabled state. It looks like-

b=Button(frame,  text = "Button", state = 'disabled')

b.bind("<ButtonRelease-1>",
                        lambda
                        event :
                        function()
                        )

Thanks
Rahul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to