Printout(title=”Printout”)
This class encapsulates the functionality of printing out an application document.
Initialize self. See help(type(self)) for accurate signature. |
|
GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo) |
|
HasPage(pageNum) -> bool |
|
OnBeginDocument(startPage, endPage) -> bool |
|
OnBeginPrinting() |
|
OnEndDocument() |
|
OnPreparePrinting() |
|
OnPrintPage(pageNum) -> bool |
SetPrintout
(wx.Printout)¶Printout(title=”Printout”)
This class encapsulates the functionality of printing out an application document.
__init__
(self, canvas)¶Initialize self. See help(type(self)) for accurate signature.
GetPageInfo
(self)¶GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)
Called by the framework to obtain information from the application about minimum and maximum page values that the user can select, and the required page range to be printed.
GetSize
(self)¶GetTotalSize
(self)¶HasPage
(self, page)¶HasPage(pageNum) -> bool
Should be overridden to return true if the document has this page, or false if not.
OnBeginDocument
(self, start, end)¶OnBeginDocument(startPage, endPage) -> bool
Called by the framework at the start of document printing.
OnBeginPrinting
(self)¶OnBeginPrinting()
Called by the framework at the start of printing.
OnEndDocument
(self)¶OnEndDocument()
Called by the framework at the end of document printing.
OnPreparePrinting
(self)¶OnPreparePrinting()
Called once by the framework before any other demands are made of the wxPrintout object.
OnPrintPage
(self, page)¶OnPrintPage(pageNum) -> bool
Called by the framework when a page should be printed.