a wxpython question about frames and panels

sameer sameer_ at email.com
Sun Jan 27 04:49:30 EST 2002


"Robin Dunn" <robin at stop.spam.alldunn.com> wrote in message news:<5%L48.86$A6.27643 at news.randori.com>...
> "sameer" <sameer_ at email.com> wrote in message
> news:6bd9f01b.0201260038.5dfd75f7 at posting.google.com...
> > I have a panel within a frame.  I use sizers to layout items in the
> > panel.  The frame is nothing but a container for the panel and a menu
> > bar and does not use any sizers.  When I start the script, the Panel
> > takes up the smallest amount of space possible, and much of the frame
> > is left gray and unused.  When I resize the frame by shrinking it or
> > expanding it by pulling on the frame border, the Panel suddently takes
> > up all the space in the frame, like it should do initially, but
> > doesn't.  How can I fix this so on initialization, the panel takes up
> > all the space provided by the frame?
> >
> 
> Force a size event by not setting the initial size of the frame until after
> the contents have been created.

but I'd like the contents to grow to the size of the frame, not the
other way around.



More information about the Python-list mailing list