Combo box in sizer

Hi,

I have attached the code for my program. I'd like to make a combo box and a grid inside a vertical sizer. I have attached the source. For some reason I can only see the combo box and not the grid. Why does that happen?

Thanks in advance,
Wayne
wkoorts@mweb.co.za

MySQLAccess.py (2.33 KB)

Hi,
One thing that I don't see that you need is a SetSizer call to set the sizer
in the window.
-Rick King

···

----- Original Message -----
I have attached the code for my program. I'd like to make a combo box and a
grid inside a vertical sizer. I have attached the source. For some reason
I can only see the combo box and not the grid. Why does that happen?

Wayne Koorts wrote:

Hi,

I have attached the code for my program. I'd like to make a combo
box and a grid inside a vertical sizer. I have attached the source.
For some reason I can only see the combo box and not the grid. Why
does that happen?

You need to add

  self.SetSizer(self.vsizer1)

···

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

Thanks for the help guys, that SetSizer command was all I needed :slight_smile:

Regards,
Wayne

···

On Tue, 18 Mar 2003 13:41:52 -0800, Robin Dunn wrote:

Wayne Koorts wrote:

Hi,

I have attached the code for my program. ?I'd like to make a combo
box and a grid inside a vertical sizer. ?I have attached the
source.
For some reason I can only see the combo box and not the grid. ?Why
does that happen?

You need to add

???self.SetSizer(self.vsizer1)