wx.html.HtmlPrintout¶This class serves as printout class for HTML documents.
Methods Summary¶__init__ |
Constructor. |
AddFilter |
Adds a filter to the static list of filters for wx.html.HtmlPrintout. |
SetFonts |
This function sets font sizes and faces. |
SetFooter |
Set page footer. |
SetHeader |
Set page header. |
SetHtmlFile |
Prepare the class for printing this HTML file. |
SetHtmlText |
Prepare the class for printing this HTML text. |
SetMargins |
Sets margins in millimeters. |
Class API¶wx.html.HtmlPrintout(Printout)¶Possible constructors:
HtmlPrintout(title="Printout")
This class serves as printout class for HTML documents.
__init__(self, title="Printout")¶Constructor.
| Parameters: | title (string) – |
|---|
AddFilter(filter)¶Adds a filter to the static list of filters for wx.html.HtmlPrintout.
See wx.html.HtmlFilter for further information.
| Parameters: | filter (wx.html.HtmlFilter) – |
|---|
SetFonts(self, normal_face, fixed_face, sizes)¶This function sets font sizes and faces.
See wx.html.HtmlWindow.SetFonts for detailed description.
| Parameters: |
|
|---|
Set page footer.
The following macros can be used inside it:
| Parameters: |
|
|---|
SetHeader(self, header, pg=PAGE_ALL)¶Set page header.
The following macros can be used inside it:
| Parameters: |
|
|---|
SetHtmlFile(self, htmlfile)¶Prepare the class for printing this HTML file.
The file may be located on any virtual file system or it may be normal file.
| Parameters: | htmlfile (string) – |
|---|
SetHtmlText(self, html, basepath="", isdir=True)¶Prepare the class for printing this HTML text.
| Parameters: |
|
|---|
SetMargins(self, top=25.2, bottom=25.2, left=25.2, right=25.2, spaces=5)¶Sets margins in millimeters.
Defaults to 1 inch for margins and 0.5cm for space between text and header and/or footer.
| Parameters: |
|
|---|