Label width

Fredrik Juhlin laz at strakt.com
Fri Feb 8 11:47:59 EST 2002


On Fri, Feb 08, 2002 at 04:34:33PM +0000, Salim Zayat wrote:
> Is there a way to determine the width and height of a Label widget (in 
> pixels) before it is actually drawn to screen?
label.winfo_width() and label.winfo_height() should do it. You might need
to call label.update_idletasks() first though, to make sure you get the
correct values.

//FJ




More information about the Python-list mailing list