I was looking into the various AUI demos, in particular the AUI MDI implementation where the child documents appear as tabbed pages in the parent Window and was confused initially which were demos of the native wxWidgets and which were from Andrea's agw library. I believe the ones in the Frames & Dialogs section are native and the rest are all agw.
The native AUI_MDI demo crashes Python when you try to exit it or close the parent window if there are any child windows open *. The attached patch fixes it by closing all the child windows first. There doesn't seem to be a corresponding demo of the agw implementation but I created one temporarily and it doesn't exhibit the problem.
When I looked on trac.wxwidgets.org, I couldn't see the issue reported but ticket #8945 contains a long thread about the development of wx.AuiDocMDI that implies it is still something of a work in progress. I could append a comment to that thread if anyone here thinks that would be the most appropriate thing to do.
* Python 2.7.1 and wxPython 2.9.1 with both Windows 7 and OS X 10.6
Thanks. Next time please make unified context diffs (usually the -u option on command-line diff programs) as they are easier to manually parse and also easier to apply to the existing files.
···
On 6/10/11 7:49 AM, David Hughes wrote:
I was looking into the various AUI demos, in particular the AUI MDI
implementation where the child documents appear as tabbed pages in the
parent Window and was confused initially which were demos of the native
wxWidgets and which were from Andrea's agw library. I believe the ones
in the Frames & Dialogs section are native and the rest are all agw.
The native AUI_MDI demo crashes Python when you try to exit it or close
the parent window if there are any child windows open *. The attached
patch fixes it by closing all the child windows first. There doesn't
seem to be a corresponding demo of the agw implementation but I created
one temporarily and it doesn't exhibit the problem.
When I looked on trac.wxwidgets.org, I couldn't see the issue reported
but ticket #8945 contains a long thread about the development of
wx.AuiDocMDI that implies it is still something of a work in progress. I
could append a comment to that thread if anyone here thinks that would
be the most appropriate thing to do.
* Python 2.7.1 and wxPython 2.9.1 with both Windows 7 and OS X 10.6
Sorry, I used the diff option in ExamDiff Pro, not realising there were different flavours.
···
On 11/06/2011 19:42, Robin Dunn wrote:
Next time please make unified context diffs (usually the -u option on command-line diff programs) as they are easier to manually parse and also easier to apply to the existing files.