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
This commit is contained in:
@@ -564,8 +564,7 @@ class PlotCanvas(wx.Window):
|
|||||||
"""Print current plot."""
|
"""Print current plot."""
|
||||||
if paper != None:
|
if paper != None:
|
||||||
self.print_data.SetPaperId(paper)
|
self.print_data.SetPaperId(paper)
|
||||||
pdd = wx.PrintDialogData()
|
pdd = wx.PrintDialogData(self.print_data)
|
||||||
pdd.SetPrintData(self.print_data)
|
|
||||||
printer = wx.Printer(pdd)
|
printer = wx.Printer(pdd)
|
||||||
out = PlotPrintout(self)
|
out = PlotPrintout(self)
|
||||||
print_ok = printer.Print(self.parent, out)
|
print_ok = printer.Print(self.parent, out)
|
||||||
|
Reference in New Issue
Block a user