X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..a3669332df65cfae18e7540a267bc3400a64aa09:/wxPython/wx/lib/docview.py diff --git a/wxPython/wx/lib/docview.py b/wxPython/wx/lib/docview.py index 2c47b8d0cb..85b6253205 100644 --- a/wxPython/wx/lib/docview.py +++ b/wxPython/wx/lib/docview.py @@ -1903,7 +1903,7 @@ class DocManager(wx.EvtHandler): newDoc.DeleteAllViews() # Implicitly deleted by DeleteAllViews frame = newDoc.GetFirstView().GetFrame() if frame: - Destroy() # DeleteAllViews doesn't get rid of the frame, so we'll explicitly destroy it. + frame.Destroy() # DeleteAllViews doesn't get rid of the frame, so we'll explicitly destroy it. return None self.AddFileToHistory(path) return newDoc @@ -2896,7 +2896,7 @@ class DocPrintout(wx.Printout): """ Not quite sure why this was overridden, but it was in wxWindows! :) """ - if not wx.Printout.base_OnBeginDocument(self, startPage, endPage): + if not wx.Printout.OnBeginDocument(self, startPage, endPage): return False return True