Grid question

from a week ago I asked a question and got some sample code which works
on python under linux, but not under windows.

Under windows the grid is there but not the boz sizer.

GridSimple2.py (9.3 KB)

···

--
Mike Wagman <mwagman@charter.net>

Mike Wagman wrote:

from a week ago I asked a question and got some sample code which works
on python under linux, but not under windows.

Under windows the grid is there but not the boz sizer.

When an item is added to a sizer by default its initial size is used as the minimum size of the item. Since the default size of the panel is something like (20,20) then that is the size that the sizer will use for it. Since the panel in your case has it's own sizer then you can set the initial size of the panel to match by calling SetSizerAndFit instead of just SetSizer.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!