[Tkinter-discuss] Re: Button look

Cameron Laird claird at lairds.com
Wed Jun 9 15:41:11 EDT 2004

> From tkinter-discuss-bounces at python.org Wed Jun 09 14:20:44 2004
> Envelope-to: claird at phaseit.net
> X-Injected-Via-Gmane: http://gmane.org/
> To: tkinter-discuss at python.org
> From: "Mike Rovner" <mike at nospam.com>
> 		.
> 		.
> 		.
> Button look
> "Batista, Facundo" <FBatista at uniFON.com.ar> wrote in message
> How can I tell the button to look "pressed" and "unpressed"?

> Make it checkbutton -variable x -indicator 0
> when you set x to 1 it checks, to 0 - unchecks
> 		.
> 		.
> 		.
Whoa!  I think that is FAR from the most satisfying answer.
Facundo, the idea I think you're after is, rather than to 
bind <Return> to the same function as the button, to bind
it to the button's activate() method.  While I can't make
time now to explain that coherently, I suspect that one 
keyword will set you in the right direction.

More information about the Tkinter-discuss mailing list