wx.PrintDialog

Inheritance diagram for wx.PrintDialog:



Description

This class represents the print and print setup common dialogs. You may obtain a wx.PrinterDC device context from a successfully dismissed print dialog.

Properties Summary

Class API

Methods

__init__(parent, data=None)

Constructor. Pass a parent window, and optionally a pointer to a block of print data, which will be copied to the print dialog’s print data.

Parameters:


Returns:

wx.PrintDialog


GetPrintDC()

Returns the device context created by the print dialog, if any. When this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly.


Returns:

wx.DC


GetPrintData()
No docstrings available for this method.

GetPrintDialogData()

Returns the print dialog data associated with the print dialog.


Returns:

wx.PrintDialogData


ShowModal()

Shows the dialog, returning wx.ID_OK if the user pressed OK, and wx.ID_CANCEL otherwise.

After this function is called, a device context may be retrievable using GetPrintDC.


Returns:

int


Properties

PrintDC
See GetPrintDC
PrintData
See GetPrintData
PrintDialogData
See GetPrintDialogData