Geometry option in Tk()
Jeff Epler
jepler at unpythonic.net
Sun Feb 9 15:56:16 EST 2003
The caveats that you'll see in the 'winfo height' and 'winfo width' section
of winfo(n) also apply to 'wm geometry':
winfo width window
Returns a decimal string giving window's width in
pixels. When a window is first created its width
will be 1 pixel; the width will eventually be
changed by a geometry manager to fulfill the win
dow's needs. If you need the true width immedi
ately after creating a widget, invoke update to
force the geometry manager to arrange it, or use
winfo reqwidth to get the window's requested width
instead of its actual width.
Jeff
More information about the Python-list
mailing list