I have a "Window" menu as is standard on a lot of applications, that is in charge of hiding and showing AUI panes, as the user desires. What I wrote up for the hiding and showing, I thought was OK. But when I started letting panes be "NotebookDockable", things went awry; the showing and hiding code is apparently not appropriate.
I gathered that the AUI frame manager is creating an automatic AuiNotebook, but I don't see how I'm supposed to properly detach the pane from the notebook before hiding it.
In the attached sample code, you can drag pane 3 to pane 1 to notebook dock with it, close pane 1 with the notebook's 'x' button, and then go to the Window menu and toggle the visibility of pane1. Instead of pane1 coming back into the notebook or anywhere else, it draws at 0,0 in the parent window with no caption and is immovable.
Sample code attached and pictures attached.
wxPython 2.9.1.1, Windows and Linux have identical behavior. Didn't have time to test OSX.
Any pointers would be great! Thanks,