 
       wx.FontDialog¶
  wx.FontDialog¶This class represents the font chooser dialog.
See also
 Methods Summary¶
 Methods Summary¶| __init__ | Default constructor. | 
| Create | Creates the dialog if the wx.FontDialog object had been initialized using the default constructor. | 
| GetFontData | Returns the font data associated with the font dialog. | 
| ShowModal | Shows the dialog, returning ID_OKif the user pressed Ok, andID_CANCELotherwise. | 
 Class API¶
 Class API¶wx.FontDialog(Dialog)¶Possible constructors:
FontDialog()
FontDialog(parent)
FontDialog(parent, data)
This class represents the font chooser dialog.
__init__(self, *args, **kw)¶__init__ (self)
Default constructor.
Create   must be called before the dialog can be shown.
__init__ (self, parent)
Constructor with parent window.
| Parameters: | parent (wx.Window) – | 
|---|
__init__ (self, parent, data)
Constructor.
Pass a parent window, and the font data object to be used to initialize the dialog controls.
| Parameters: | 
 | 
|---|
Create(self, *args, **kw)¶Creates the dialog if the wx.FontDialog object had been initialized using the default constructor.
| Returns: | Trueon success andFalseif an error occurred. | 
|---|
Create (self, parent)
| Parameters: | parent (wx.Window) – | 
|---|---|
| Return type: | bool | 
Create (self, parent, data)
| Parameters: | 
 | 
|---|---|
| Return type: | bool | 
GetFontData(self)¶Returns the font data associated with the font dialog.
| Return type: | wx.FontData | 
|---|
ShowModal(self)¶Shows the dialog, returning  ID_OK   if the user pressed Ok, and   ID_CANCEL   otherwise.
If the user cancels the dialog (ShowModal returns  ID_CANCEL ), no font will be created. If the user presses wx.OK, a new    wx.Font  will be created and stored in the font dialog’s   wx.FontData  structure.
| Return type: | int | 
|---|
See also
FontData¶See GetFontData