************** wx.PrintDialog ************** Inheritance diagram for `wx.PrintDialog`: | .. inheritance-diagram:: 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. Derived From ^^^^^^^^^^^^^ * `wx.Dialog `_ * `wx.Window `_ * `wx.EvtHandler `_ * `wx.Object `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetPrintDC <#GetPrintDC>`_ * `GetPrintData <#GetPrintData>`_ * `GetPrintDialogData <#GetPrintDialogData>`_ * `ShowModal <#ShowModal>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `PrintDC <#PrintDC>`_ * `PrintData <#PrintData>`_ * `PrintDialogData <#PrintDialogData>`_ Class API ========= Methods ^^^^^^^ .. method:: __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:** * `parent` (`wx.Window `_) * `data` (`wx.PrintDialogData `_) | **Returns:** `wx.PrintDialog `_ -------- .. method:: 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 `_ -------- .. method:: GetPrintData() `No docstrings available for this method.` -------- .. method:: GetPrintDialogData() Returns the print dialog data associated with the print dialog. | **Returns:** `wx.PrintDialogData `_ -------- .. method:: 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 <#GetPrintDC>`_. | **Returns:** `int` -------- Properties ^^^^^^^^^^ .. attribute:: PrintDC See `GetPrintDC <#GetPrintDC>`_ .. attribute:: PrintData See `GetPrintData <#GetPrintData>`_ .. attribute:: PrintDialogData See `GetPrintDialogData <#GetPrintDialogData>`_