diff --git a/wxPython/wx/tools/XRCed/tree.py b/wxPython/wx/tools/XRCed/tree.py index de22265b1a..91cf9eb7e1 100644 --- a/wxPython/wx/tools/XRCed/tree.py +++ b/wxPython/wx/tools/XRCed/tree.py @@ -677,9 +677,6 @@ class XML_Tree(wxTreeCtrl): if child.IsWindow(): child = child.GetWindow() elif child.IsSizer(): child = child.GetSizer() - # Test for notebook sizers (deprecated) - if isinstance(child, wxNotebookSizer): - child = child.GetNotebook() return child def OnSelChanged(self, evt):