I have a wxFrame. On it is a wxNotebook, the Notebook ctrl has 5 tabs (Each one is a wxPanel.) On one of the tab pages (panels) I want to add another notebook ctrl. I get no errors but nothing shows up on the panel.. why is that? If I add a button or checkbox to the sizer on that panel, it shows. A notebook ctrl just isn't visible. The code is below:
I checked and AddPage() returns True Weird thing is I can see a little bit, like the corner of a button where the wxNotebook is supposed to start. class TabPage(wxPanel): def __init__(self, parent): wxPanel.__init__(self, parent, -1) self.nb = wxNotebook(self, -1) self.nb.AddPage(wxPanel(self.nb, -1), "Settings") sizer = wxBoxSizer(wxHORIZONTAL) sizer.Add(self.nb(self)) self.SetSizer(sizer) self.Layout() self.Fit() -- http://mail.python.org/mailman/listinfo/python-list