Second phase of OOR completed. (Original python object return for

wxEvtHandler and derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-10-12 23:26:38 +00:00
parent 8754feb848
commit 0122b7e3fc
112 changed files with 3422 additions and 870 deletions

View File

@@ -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