Need help with Tk problem...
Fredrik Lundh
fredrik at pythonware.com
Tue Feb 1 10:23:35 EST 2000
Sven Drescher <Sven.Drescher at dlr.de> wrote:
> I need a little Tk feature for my GUI, but I don't know how to do the
> following. I looked for it in Deja and FAQs but nothing found.
>
> I want to get the current size of an widget, e.g. Tkinter.Frame()
>
> I know the options geometry, width and height. But if the frame grows or
> shrinks, these options don't change. What did I wrong? Is there an other
> function to get the current size???
reading the fine manual might help; go to
http://www.pythonware.com/library/tkinter/introduction/basic-widget-methods.htm
-> window related information
and look for winfo_width() and winfo_height()
(also see reqwidth/reqheight)
</F>
More information about the Python-list
mailing list