wxAuiManager

Hi everyone,

I am having some trouble understanding how to use an AuiManager to persist an AuiNotebook layout. What should the initialization code look like?

        from wx.aui import AuiNotebook, AuiManager
        ui = AuiNotebook(frame)
        auiManager = AuiManager()
        auiManager.SetManagedWindow(ui)

That is one thing I tried to set it up correctly. I also tried some things with AddPane and InsertPane but those didn't seem right. I added a debug event to print auiManager.SavePerspective() but everytime I do it no matter how many changes I make to the notebook, the string is the same. By the way, after this code I am just unpickling the wxString from a file (which was pickled from auiManager.SavePerspective on the last run) and calling auiManager.LoadPersective with it.

I also assume however many tabs the AuiNotebook had when I exited, I have to add back in before I attempt to do a LoadPerspective?

If someone could shed some light on this topic and explain how to get the manager to pay attention to the notebook properly I would greatly appreciate it.

Thanks in advance,
Mike