Geometry option in Tk()
Sam Marrocco
samSPAMMENOT at twmi.rr.com
Sun Feb 9 14:22:17 EST 2003
Using TK, I've got a window that I can set the size of using the
toplevel widget.....but even thought the window changes sizes according
to my .geometry option, I can't "read" the information back from the
toplevel widget correctly.....
root=Tk()
root.geometry("50x50+100+100") #Set the window to a size and pos
print root.geometry()
>>RETURNS: 1x1+100+100
The x & y position information is correct, but the width and height info
always returns as 1 & 1.
Why would this be if the widget is taking/drawing correctly?
--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Houdini, Maya, All that cool stuff!
"The fact that no one understands you doesn't make you an artist."
==================================================================
More information about the Python-list
mailing list