import wx
import wx.lib.agw.aui as aui

class App(wx.App):
    def __init__(self, *args, **kwargs):
        super(App, self).__init__(*args, **kwargs)
        frame = wx.Frame(None, size=(350,400))
        frame.Show()
        self.auimgr = aui.AuiManager(frame)
        
        nb = aui.AuiNotebook(frame, wx.ID_ANY, size=(400,100), style=aui.AUI_NB_TOP)
        tab1   = wx.Panel(nb, wx.ID_ANY, size=(200,100))
        tab2   = wx.Panel(nb, wx.ID_ANY, size=(200,100))
        nb.AddPage(tab1, "Tab1")
        nb.AddPage(tab2, "Tab2")

        panel1 = wx.Panel(frame, wx.ID_ANY, size=(150,200))
        panel2 = wx.Panel(frame, wx.ID_ANY, size=(200,200))

        frame.SetBackgroundColour("white")
        panel1.SetBackgroundColour("pink")
        panel2.SetBackgroundColour("green")
        tab1.SetBackgroundColour("yellow")
        tab2.SetBackgroundColour("blue")
        nb.SetBackgroundColour("red")

        self.auimgr.AddPane(panel1, 
            aui.AuiPaneInfo().Left().Caption("left").Show(True))
        self.auimgr.AddPane(panel2, 
            aui.AuiPaneInfo().Centre().CenterPane().Caption("right").Show(True))
        self.auimgr.AddPane(nb, 
            aui.AuiPaneInfo().Bottom().NotebookDockable(False).Caption("Notebook").Show(True))
        self.auimgr.Update()

app = App(None)
app.MainLoop()
