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