From: Robin Dunn Date: Mon, 29 Dec 2003 23:21:03 +0000 (+0000) Subject: Show how to set print data options when using HTMLEasyPrinting X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/72d3f3166ac3e1216967421d8a5e1efbf114d480 Show how to set print data options when using HTMLEasyPrinting git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index 48b0706111..edfe7027b6 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -196,7 +196,7 @@ class TestHtmlPanel(wx.Panel): def OnPrint(self, event): - ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100)) + self.printer.GetPrintData().SetPaperId(wx.PAPER_LETTER) self.printer.PrintFile(self.html.GetOpenedPage()) #----------------------------------------------------------------------