diff --git a/CHANGES.rst b/CHANGES.rst index f5a2ac78..cd677ba2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -40,7 +40,8 @@ New and improved in this release: * Added orientation parameter to UltimateListControl.GetScrollPos. (PR#1632) - +* wx.AuiNotebook RemovePage() now hides the removed page, so it needs to be + shown again if it is reused in another place. (PR#1668) 4.1.0 "Escaping the Quarantine" diff --git a/wx/lib/agw/aui/auibook.py b/wx/lib/agw/aui/auibook.py index c8aac04f..9b5168c8 100644 --- a/wx/lib/agw/aui/auibook.py +++ b/wx/lib/agw/aui/auibook.py @@ -3714,6 +3714,8 @@ class AuiNotebook(wx.Panel): if not wnd: return False + wnd.Show(show=False) + # find out which onscreen tab ctrl owns this tab ctrl, ctrl_idx = self.FindTab(wnd) if not ctrl: