X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c75a4cf0f94cbe53bfde4fbcddff741158fbc7c..bc50a2ae95f2ab36b16ceedc7902a9cbfb2f70ea:/wxPython/demo/Calendar.py diff --git a/wxPython/demo/Calendar.py b/wxPython/demo/Calendar.py index 44cfdca5b0..58bbda9b6b 100644 --- a/wxPython/demo/Calendar.py +++ b/wxPython/demo/Calendar.py @@ -541,10 +541,10 @@ class SetPrintout(wx.Printout): self.end_pg = 1 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): if page <= self.end_pg: @@ -564,7 +564,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() @@ -581,7 +581,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()