RowColSizer()

I really don't get why this doesn't work,
class NPpanel(wxPanel):
    def __init__(self,parent,id):
        wxPanel.__init__(self,parent,id)
        self.sizer = RowColSizer()
        self.sizer.Add(wxTextCtrl(self, -1, "(3,1)"), row=5, col=1,colspan=5)
        self.sizer.Add(wxTextCtrl(self, -1, "(3,2)"), row=3, col=2)

Jonas Geiregat wrote:

I really don't get why this doesn't work,
class NPpanel(wxPanel):
   def __init__(self,parent,id):
       wxPanel.__init__(self,parent,id)
       self.sizer = RowColSizer()
       self.sizer.Add(wxTextCtrl(self, -1, "(3,1)"), row=5, col=1,colspan=5)
       self.sizer.Add(wxTextCtrl(self, -1, "(3,2)"), row=3, col=2)

Did you do
  self.SetSizer(self.sizer)

···

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