I see that now we have access to AuiNotebook.GetAuiManager(), which is nice. However I am unsure exactly how to use it as it is an internal manager. Normally I would expect to have to call AddPane and Update occasionally but they result in hard python.exe crashes and I assume AuiNotebook is already doing them anyway.
It would seem like perhaps all I need to do is a SavePerspective and LoadPerspective, however it does not work as desired. Currently I am writing the number of panes in the notebook, as well as the SavePerspective data to a file on exit. When running the program again, I create the number of panes as specified in the file and add them to the AuiNotebook. Then I call LoadPerspective with the data. This call does not seem to have any immediate effect and doesn't layout the panels like I would expect. But if I try to make a new tab group and drag things around, then it is buggy, like it sort of knows the current layout isn't right, but not exactly what to do.
Am I right in creating the appropriate number of pages beforehand? Is there a problem because they are not the same instances or captions? I tried iterating over the pages on exit and numbering them 0-X, and then numbering them in the same fashion when loading to see if it needed the captions to be the same, but that does not seem to be the issue. Any help/suggestions would be greatly appreciated.
I see that now we have access to AuiNotebook.GetAuiManager(), which
is nice. However I am unsure exactly how to use it as it is an
internal manager. Normally I would expect to have to call AddPane and
Update occasionally but they result in hard python.exe crashes and I
assume AuiNotebook is already doing them anyway.
It would seem like perhaps all I need to do is a SavePerspective and
LoadPerspective, however it does not work as desired. Currently I am
writing the number of panes in the notebook, as well as the
SavePerspective data to a file on exit. When running the program
again, I create the number of panes as specified in the file and add
them to the AuiNotebook. Then I call LoadPerspective with the data.
This call does not seem to have any immediate effect and doesn't
layout the panels like I would expect. But if I try to make a new tab
group and drag things around, then it is buggy, like it sort of knows
the current layout isn't right, but not exactly what to do.
Am I right in creating the appropriate number of pages beforehand? Is
there a problem because they are not the same instances or captions?
I tried iterating over the pages on exit and numbering them 0-X, and
then numbering them in the same fashion when loading to see if it
needed the captions to be the same, but that does not seem to be the
issue. Any help/suggestions would be greatly appreciated.
I'm not sure. All I did was add the getter to the class and assumed it would be usable, I didn't dig into the code to see if it was actually feasible to use it like this. I don't have time to do so today, but I will try to do it soon.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!