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
"""
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