phoenix_title wx.lib.printout.SetPrintout

Printout(title=”Printout”)

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() -> (minPage, maxPage, pageFrom, pageTo)

GetSize

GetTotalSize

HasPage

HasPage(pageNum) -> bool

OnBeginDocument

OnBeginDocument(startPage, endPage) -> bool

OnBeginPrinting

OnBeginPrinting()

OnEndDocument

OnEndDocument()

OnPreparePrinting

OnPreparePrinting()

OnPrintPage

OnPrintPage(pageNum) -> bool


api Class API

class SetPrintout(wx.Printout)

Printout(title=”Printout”)

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() -> (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.