************* wx.FontDialog ************* Inheritance diagram for `wx.FontDialog`: | .. inheritance-diagram:: wx.FontDialog | Description =========== This class represents the font chooser dialog. .. seealso:: `wx.FontData `_, `wx.GetFontFromUser <../wxFunctions.html/GetFontFromUser>`_ Derived From ^^^^^^^^^^^^^ * `wx.Dialog `_ * `wx.Window `_ * `wx.EvtHandler `_ * `wx.Object `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetFontData <#GetFontData>`_ * `ShowModal <#ShowModal>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `FontData <#FontData>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(parent, data) Constructor. Pass a parent window and the `wx.FontData `_ object to be used to initialize the dialog controls. Call `ShowModal <#ShowModal>`_ to display the dialog. If `ShowModal` returns ``wx.ID_OK`` then you can fetch the results with via the `wx.FontData `_ returned by `GetFontData <#GetFontData>`_. **Parameters:** * `parent` (`wx.Window `_) * `data` (`wx.FontData `_) | **Returns:** `wx.FontDialog `_ -------- .. method:: GetFontData() Returns the font data associated with the font dialog. | **Returns:** `wx.FontData `_ -------- .. method:: ShowModal() Shows the dialog, returning one of ``wx.ID_OK`` or ``wx.ID_CANCEL``. If the user cancels the dialog (`ShowModal` returns ``wx.ID_CANCEL``), no font will be created. If the user presses ``OK``, a new `wx.Font `_ will be created and stored in the font dialog's `wx.FontData `_ structure. | **Returns:** `int` -------- Properties ^^^^^^^^^^ .. attribute:: FontData See `GetFontData <#GetFontData>`_