This class provides a simple interface for performing wx.richtext.RichTextBuffer printing and previewing.
It uses wx.richtext.RichTextPrintout for layout and rendering.
Constructor. |
|
A convenience function to get the footer text. |
|
Returns the internal wx.richtext.RichTextHeaderFooterData object. |
|
A convenience function to get the header text. |
|
Returns a pointer to the internal page setup data. |
|
Returns the parent window to be used for the preview window and printing wait dialog. |
|
Returns the dimensions to be used for the preview window. |
|
Returns a pointer to the internal print data. |
|
Returns the title of the preview window or printing wait caption. |
|
Shows the page setup dialog. |
|
Shows a preview window for the given buffer. |
|
Shows a preview window for the given file. |
|
Prints the given buffer. |
|
Prints the given file. |
|
A convenience function to set the footer text. |
|
Sets the internal wx.richtext.RichTextHeaderFooterData object. |
|
Sets the wx.richtext.RichTextHeaderFooterData font. |
|
Sets the wx.richtext.RichTextHeaderFooterData text colour. |
|
A convenience function to set the header text. |
|
Sets the page setup data. |
|
Sets the parent window to be used for the preview window and printing wait dialog. |
|
Sets the dimensions to be used for the preview window. |
|
Sets the print data. |
|
Pass |
|
Pass the title of the preview window or printing wait caption. |
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
Possible constructors:
RichTextPrinting(name: str="Printing", parentWindow:
Optional[Window]=None) -> None
This class provides a simple interface for performing RichTextBuffer printing and previewing.
Constructor.
Optionally pass a title to be used in the preview frame and printing wait dialog, and also a parent window for these windows.
name (string)
parentWindow (wx.Window)
None
A convenience function to get the footer text.
See wx.richtext.RichTextHeaderFooterData for details.
page (RichTextOddEvenPage)
location (RichTextPageLocation)
str
Returns the internal wx.richtext.RichTextHeaderFooterData object.
A convenience function to get the header text.
See wx.richtext.RichTextHeaderFooterData for details.
page (RichTextOddEvenPage)
location (RichTextPageLocation)
str
Returns a pointer to the internal page setup data.
PageSetupDialogData
Returns the parent window to be used for the preview window and printing wait dialog.
Window
Returns the dimensions to be used for the preview window.
Rect
Returns the title of the preview window or printing wait caption.
str
Shows the page setup dialog.
None
Shows a preview window for the given buffer.
The function takes its own copy of buffer.
buffer (wx.richtext.RichTextBuffer)
bool
Shows a preview window for the given file.
richTextFile can be a text file or XML
file, or other file depending on the available file handlers.
richTextFile (string)
bool
Prints the given buffer.
The function takes its own copy of buffer. showPrintDialog can be True
to show the print dialog, or False
to print quietly.
buffer (wx.richtext.RichTextBuffer)
showPrintDialog (bool)
bool
Prints the given file.
richTextFile can be a text file or XML
file, or other file depending on the available file handlers. showPrintDialog can be True
to show the print dialog, or False
to print quietly.
richTextFile (string)
showPrintDialog (bool)
bool
A convenience function to set the footer text.
See wx.richtext.RichTextHeaderFooterData for details.
text (string)
page (RichTextOddEvenPage)
location (RichTextPageLocation)
None
Sets the internal wx.richtext.RichTextHeaderFooterData object.
None
Sets the wx.richtext.RichTextHeaderFooterData font.
font (wx.Font)
None
Sets the wx.richtext.RichTextHeaderFooterData text colour.
colour (wx.Colour)
None
A convenience function to set the header text.
See wx.richtext.RichTextHeaderFooterData for details.
text (string)
page (RichTextOddEvenPage)
location (RichTextPageLocation)
None
Sets the page setup data.
pageSetupData (wx.PageSetupDialogData)
None
Sets the parent window to be used for the preview window and printing wait dialog.
parent (wx.Window)
None
Sets the dimensions to be used for the preview window.
rect (wx.Rect)
None
Sets the print data.
printData (wx.PrintData)
None
Pass True
to show the header and footer on the first page.
show (bool)
None
Pass the title of the preview window or printing wait caption.
title (string)
None
See GetFooterText
and SetFooterText
See GetHeaderText
and SetHeaderText
See GetPageSetupData
and SetPageSetupData
See GetParentWindow
and SetParentWindow
See GetPreviewRect
and SetPreviewRect
See GetPrintData
and SetPrintData