wx.PrintDialog¶
This class represents the print and print setup common dialogs.
You may obtain a wx.PrinterDC device context from a successfully dismissed print dialog.
Class Hierarchy¶
Control Appearance¶
Methods Summary¶
Constructor. |
|
Returns the device context created by the print dialog, if any. |
|
Returns the print data associated with the print dialog. |
|
Returns the print dialog data associated with the print dialog. |
|
Shows the dialog, returning |
Properties Summary¶
See |
|
See |
|
Class API¶
- class wx.PrintDialog(Object)¶
Possible constructors:
PrintDialog(parent, data=None) -> None PrintDialog(parent, data) -> None
This class represents the print and print setup common dialogs.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self, 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:
parent (wx.Window)
data (wx.PrintDialogData)
- Return type:
None
See also
__init__ (self, parent, data)
- Parameters:
parent (wx.Window)
data (wx.PrintData)
- Return type:
None
- GetPrintDC(self)¶
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.
- Return type:
- GetPrintData(self)¶
Returns the print data associated with the print dialog.
- Return type:
- GetPrintDialogData(self)¶
Returns the print dialog data associated with the print dialog.
- Return type:
- ShowModal(self)¶
Shows the dialog, returning
ID_OK
if the user pressedwx.OK
, andID_CANCEL
otherwise.After this function is called, a device context may be retrievable using
GetPrintDC
.- Return type:
int
Properties¶
- PrintDC¶
See
GetPrintDC
- PrintData¶
See
GetPrintData
- PrintDialogData¶