Skip to content

Commit fe2f0a5

Browse files
AGAG
authored andcommitted
AGW on Classic: apply Rob's patch: when using DetachPane on panes in an automatic notebook. If you remove all the panes from the notebook and then call UpdateNotebook, the notebook gets removed, but the panes hadn't been reparented to the frame so they get destroyed.
git-svn-id: http://svn.wxwidgets.org/svn/wx/wxPython@75576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1 parent 896b17b commit fe2f0a5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

3rdParty/AGW/agw/aui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def OnClose(self, event):
278278
279279
AUI library is distributed under the wxPython license.
280280
281-
Latest Revision: Andrea Gavana @ 18 Feb 2013, 21.00 GMT
281+
Latest Revision: Andrea Gavana @ 09 Jan 2014, 23.00 GMT
282282
283283
Version 1.3.
284284

3rdParty/AGW/agw/aui/framemanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Python Code By:
1414
#
1515
# Andrea Gavana, @ 23 Dec 2005
16-
# Latest Revision: 17 Feb 2013, 21.00 GMT
16+
# Latest Revision: 09 Jan 2014, 23.00 GMT
1717
#
1818
# For All Kind Of Problems, Requests Of Enhancements And Bug Reports, Please
1919
# Write To Me At:
@@ -4971,6 +4971,7 @@ def DetachPane(self, window):
49714971
notebook = self._notebooks[p.notebook_id]
49724972
id = notebook.GetPageIndex(p.window)
49734973
notebook.RemovePage(id)
4974+
p.window.Reparent(self._frame)
49744975

49754976
# make sure there are no references to this pane in our uiparts,
49764977
# just in case the caller doesn't call Update() immediately after

0 commit comments

Comments
 (0)