[CentralOH] Tkinter Checkbutton

Mark Erbaugh mark at microenh.com
Fri Aug 27 13:47:50 CEST 2010


On Aug 26, 2010, at 8:25 PM, Mark Erbaugh wrote:

> I would like to place some Tkinter Checkbutton's on a Canvas. When I use a Frame and the Pack geometry manager, it knows the appropriate height of the Checkbutton so that that it can align them properly.  Is there a way for me to determine the height of a Checkbutton when placing it on a canvas?  I tried using the Checkbutton's font height, but the indicator (checkmark box) is taller.
> 

I figured it out: use the Checkbutton's  winfo_reqheight method

Mark



More information about the CentralOH mailing list