wxPython.Fit() is funky.

Miki Tebeka tebeka at cs.bgu.ac.il
Thu Jun 26 02:10:21 EDT 2003


Hello Tom,

> Unfortunately, this behavior means that Fit() is
> nearly useless for me.  I just started doing this wx and Python
> stuff, and every window that I create in my recent project needs
> to be sized based on the content.  The way Fit() works is making
> me actually compute the size of the content myself.  It's not
> hard, but it is tedious when the library tells you that this
> functionality is available. 
Why don't you use sizers?
(http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin40.htm#wxboxsizer)
They save you from doing all this stuff by yourself.

HTH.
Miki




More information about the Python-list mailing list