[wxPython] layout issues

I can't seem to get the layout working correctly, instead of putting

the

text control to the right of the static text, it appears as though the
text control is being place on top of the label(static text).

Here's a code snippet,

  #add box to right
        rsizer = wxFlexGridSizer(cols=2)

        #Add text box to right
        label = wxStaticText( right, LABEL_MACHINE, "Database:" )
        dbtext = wxTextCtrl( right, TEXT_MACHINE )

        rsizer.Add(label)
        rsizer.Add(dbtext)

        right.SetSizer(rsizer)
        right.SetAutoLayout(true)

What kind of windw is right, what is it's parent, and how is it sized?

Robin-

right is a wxWindow, in a wxSplitterWindow (it's the right window;)).
And these guys are in a notebook(self.nb).
heres the code:
   self.splitter = wxSplitterWindow( self.nb,
MAIN_SPLITTER,style=wxSP_BORDER )
      left = wxWindow(self.splitter, MAIN_SPLITTER)

matt

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, September 05, 2001 2:51 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] layout issues

right is a wxWindow, in a wxSplitterWindow (it's the right window;)).

wxWindow doesn't do anything for SetAutoLayout because it didn't make sense
for all it's derived classes to inherit that behavior. You can either give
it an EVT_SIZE handler that calls self.Layout() or just use a wxPanel
instead.

···

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