]> git.saurik.com Git - wxWidgets.git/commitdiff
Show how to set print data options when using HTMLEasyPrinting
authorRobin Dunn <robin@alldunn.com>
Mon, 29 Dec 2003 23:21:03 +0000 (23:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 29 Dec 2003 23:21:03 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxHtmlWindow.py

index 48b0706111614bcb041da9a0e61edfc4d567a433..edfe7027b674e1af1c9c95c7ec072cc7e1124ecc 100644 (file)
@@ -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())
 
 #----------------------------------------------------------------------