Changes to how overridable C++ methods are virtualized for Python.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-02-07 03:56:44 +00:00
parent e4c37d10dd
commit a7a0141800
25 changed files with 890 additions and 766 deletions

View File

@@ -1056,10 +1056,10 @@ class SetPrintout(wx.Printout):
self.end_pg = 1000
def OnBeginDocument(self, start, end):
return self.base_OnBeginDocument(start, end)
return super(SetPrintout, self).OnBeginDocument(start, end)
def OnEndDocument(self):
self.base_OnEndDocument()
super(SetPrintout, self).OnEndDocument()
def HasPage(self, page):
try:
@@ -1079,7 +1079,7 @@ class SetPrintout(wx.Printout):
return (str_pg, end_pg, str_pg, end_pg)
def OnPreparePrinting(self):
self.base_OnPreparePrinting()
super(SetPrintout, self).OnPreparePrinting()
def OnBeginPrinting(self):
dc = self.GetDC()
@@ -1095,7 +1095,7 @@ class SetPrintout(wx.Printout):
scaleY = float(h) / 1000
self.printUserScale = min(scaleX, scaleY)
self.base_OnBeginPrinting()
super(SetPrintout, self).OnBeginPrinting()
def GetSize(self):
self.psizew, self.psizeh = self.GetPPIPrinter()