wxPython.Fit() is funky.
Tom Plunket
tomas at fancy.org
Thu Jun 26 12:39:52 EDT 2003
Miki Tebeka wrote:
> > Unfortunately, this behavior means that Fit() is
> > nearly useless for me.
>
> 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.
In one case in particular, I have a panel that's the size I want,
and I want the frame to fit neatly around it. Seems like
overkill to use a sizer, especially when the documentation for
Fit() implies that it does what I want.
The panel doesn't contain any controls, and I "give" that window
to Pygame/SDL anyway so wx loses control of it. It starts out
the size I want.
-tom!
More information about the Python-list
mailing list