wx.lib.printout.SetPrintout¶
Printout(title=”Printout”) -> None
This class encapsulates the functionality of printing out an application document.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
GetPageInfo() -> Tuple[int, int, int, int] |
|
HasPage(pageNum) -> bool |
|
OnBeginDocument(startPage, endPage) -> bool |
|
OnBeginPrinting() -> None |
|
OnEndDocument() -> None |
|
OnPreparePrinting() -> None |
|
OnPrintPage(pageNum) -> bool |
Class API¶
- class SetPrintout(wx.Printout)¶
Printout(title=”Printout”) -> None
This class encapsulates the functionality of printing out an application document.
Methods¶
- __init__(self, canvas)¶
Initialize self. See help(type(self)) for accurate signature.
- GetPageInfo(self)¶
GetPageInfo() -> Tuple[int, int, int, int]
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() -> None
Called by the framework at the start of printing.
- OnEndDocument(self)¶
OnEndDocument() -> None
Called by the framework at the end of document printing.
- OnPreparePrinting(self)¶
OnPreparePrinting() -> None
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.