def HasPage(self, page):
self.log.WriteText("wxPrintout.HasPage: %d\n" % page)
if page <= 2:
- return true
+ return True
else:
- return false
+ return False
def GetPageInfo(self):
self.log.WriteText("wxPrintout.GetPageInfo\n")
#-------------------------------------------
- self.canvas.DoDrawing(dc)
+ self.canvas.DoDrawing(dc, True)
dc.DrawText("Page: %d" % page, marginX/2, maxY-marginY)
- return true
+ return True
#----------------------------------------------------------------------
self.box.Add(subbox, 0, wxGROW)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.SetSizer(self.box)
def OnPrintSetup(self, event):
printerDialog = wxPrintDialog(self)
printerDialog.GetPrintDialogData().SetPrintData(self.printData)
- printerDialog.GetPrintDialogData().SetSetupDialog(true)
+ printerDialog.GetPrintDialogData().SetSetupDialog(True)
printerDialog.ShowModal();
self.printData = printerDialog.GetPrintDialogData().GetPrintData()
printerDialog.Destroy()
frame.Initialize()
frame.SetPosition(self.frame.GetPosition())
frame.SetSize(self.frame.GetSize())
- frame.Show(true)
+ frame.Show(True)
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+