self.SetSizer(sizer)


class MainFrame(wx.Frame):
    """"""

def __init__(self):
    """Constructor"""
wx.Frame.__init__(self, None, title='Nested Splitters', size=(800, 600))
panel = MainPanel(self)
self.Show()
if __name__ == '__main__':
    app = wx.App(False)
frame = MainFrame()
app.MainLoop()
How to create a wxpython notebook with 2 panels splitted horizontally?