Hi Mike,
I know I've asked a similar question before but now that I have seen your PyAUI
I am wondering if there is still a way. I have an AUINotebook and would like to
optimally be able to SavePerspective and LoadPerspective, but apparently it
uses its own manager internally and I can neither access that manager nor
create my own to do this?
It is correct. It appears that AUINotebook has its own manager, and we
wxPythoneers can't do anything about that. Moreover, even if we were
able to access it, it is not clear to me what happens, for example,
when you close an AUINotebook page: does the associated page get
destroyed? If this is the case, even if you can access the manager you
can not use LoadPerspective and SavePerspective once you allow the
close button to be active.
Is there any way to do this, maybe using PyAUI? I see the actual controls
themselves aren't implemented in Python so maybe not.
PyAUI does not have an implementation for AUINotebook: I created it
more than one year ago, when AUINotebook didn't exist. After wxAUI has
been integrated in wxWidgets and wrapped in wxPython, I dropped the
development of PyAUI because it was redundant, and no one showed
interested anymore in it.
I would really love to at least be able to open two tab groups split down the
middle with a tab in each at the beginning, and I would probably be happy with
that, however I suspect if that is possible so is total persistence of the layout.
Any ideas? I am comfortable with going into any of the python source if that
helps, as this would really be helpful to be able to do.
Well, actually having a Python implementation of the current wxAUI
would (in theory) solve many standing issues (some of them have been
there for more than one year):
- wxEVT_AUI_PANE_DOCKED/wxEVT_AUI_PANE_FLOATED, or whatever you want
to call them: the events that might be called when you dock/undock a
pane;
- A way to hack the source code without relying in what is private or
not private in the underlying C++ wrapped class (whatever "private"
means), so that anyone could work on it and maybe provide
improvements/patches;
And other issues as well, reported by PyAUI users in the past, which I
never implemented.
If you wish to dig inside source code, I have uploaded a new version
of PyAUI development here:
http://xoomer.alice.it/infinity77/eng/freeware.html#pyaui
This version contains:
1) The patch provided by Tim Ansell, which handles Maximize/Restore
behavior for panes;
2) A working implementation of ModernDockArt, an art manager for
Windows XP users (requiress Mark Hammond's win32all installed): it is
very nice in my opinion.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 1/9/07, Rooney, Mike (ext. 324) wrote: