[Tkinter-discuss] Fwd: Toggle buttons

Michael Lange klappnase at web.de
Tue Jul 24 21:17:12 CEST 2012


Hi,

Thus spoketh Jane Griscti <jgriscti at gmail.com> 
unto us on Tue, 24 Jul 2012 14:50:36 -0400:

> I was able to get it work with the code below.  I just forced a width
> of 11 pixels (tried to use the winfo_reqwidth() of another button to
> get the right size but it returns 76 for some reason ... there must be
> a way to get a decent size??)

Sounds like a tiny checkbutton ;)
I suspect that the "11" refers to character units rather than pixels and
the "76" looks like a reasonable pixel size for a button.

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

The sooner our happiness together begins, the longer it will last.
		-- Miramanee, "The Paradise Syndrome", stardate 4842.6


More information about the Tkinter-discuss mailing list