phoenix_title wx.lib.printout.SetPrintout

Printout(title=”Printout”) -> None

This class encapsulates the functionality of printing out an application document.


class_hierarchy Class Hierarchy

Inheritance diagram for class SetPrintout:

super_classes Known Superclasses

wx.Printout


method_summary Methods Summary

__init__

Initialize self. See help(type(self)) for accurate signature.

GetPageInfo

GetPageInfo() -> Tuple[int, int, int, int]

GetSize

GetTotalSize

HasPage

HasPage(pageNum) -> bool

OnBeginDocument

OnBeginDocument(startPage, endPage) -> bool

OnBeginPrinting

OnBeginPrinting() -> None

OnEndDocument

OnEndDocument() -> None

OnPreparePrinting

OnPreparePrinting() -> None

OnPrintPage

OnPrintPage(pageNum) -> bool


api 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 numbers to print.



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.