a wxpython question about frames and panels
Robin Dunn
robin at stop.spam.alldunn.com
Sun Jan 27 00:12:34 EST 2002
"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.
--
Robin Dunn
Software Craftsman
robin at AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
More information about the Python-list
mailing list