]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/docview.py
Add code to remove the selection (if any) in wxTextCtrl::WriteText for multi-line...
[wxWidgets.git] / wxPython / wx / lib / docview.py
index 2c47b8d0cbf50db0f776a34639ae0e4a51e264de..85b6253205acf4b06810cce6e85ca3948cc6b014 100644 (file)
@@ -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