X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3f4f90c2a0c1f274d1918b320132ed0ca2922fe5:/wxPython/demo/PrintFramework.py diff --git a/wxPython/demo/PrintFramework.py b/wxPython/demo/PrintFramework.py index 6b77eb1f2b..faa33469d0 100644 --- a/wxPython/demo/PrintFramework.py +++ b/wxPython/demo/PrintFramework.py @@ -31,18 +31,18 @@ class MyPrintout(wxPrintout): self.base_OnPreparePrinting() def HasPage(self, page): - self.log.WriteText("wxPrintout.HasPage\n") - if page == 1: + self.log.WriteText("wxPrintout.HasPage: %d\n" % page) + if page <= 2: return true else: return false def GetPageInfo(self): self.log.WriteText("wxPrintout.GetPageInfo\n") - return (1, 1, 1, 1) + return (1, 2, 1, 2) def OnPrintPage(self, page): - self.log.WriteText("wxPrintout.OnPrintPage\n") + self.log.WriteText("wxPrintout.OnPrintPage: %d\n" % page) dc = self.GetDC() #------------------------------------------- @@ -80,6 +80,8 @@ class MyPrintout(wxPrintout): #------------------------------------------- self.canvas.DoDrawing(dc) + dc.DrawText("Page: %d" % page, marginX/2, maxY-marginY) + return true