From: Robin Dunn Date: Mon, 13 Jun 2005 20:48:52 +0000 (+0000) Subject: Pass the print data to the wx.PrintDialogData ctor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/467f4d3a74657334b6a10ead3a86c535f6480943?ds=inline Pass the print data to the wx.PrintDialogData ctor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/plot.py b/wxPython/wx/lib/plot.py index a5fbb89e98..e1d02016b6 100644 --- a/wxPython/wx/lib/plot.py +++ b/wxPython/wx/lib/plot.py @@ -564,8 +564,7 @@ class PlotCanvas(wx.Window): """Print current plot.""" if paper != None: self.print_data.SetPaperId(paper) - pdd = wx.PrintDialogData() - pdd.SetPrintData(self.print_data) + pdd = wx.PrintDialogData(self.print_data) printer = wx.Printer(pdd) out = PlotPrintout(self) print_ok = printer.Print(self.parent, out)