wx.FontDialog¶This class represents the font chooser dialog.
See also
FontDialog Overview, wx.FontData, wx.GetFontFromUser
Class Hierarchy¶
Inheritance diagram for class FontDialog:
Control Appearance¶
wxMSW¶
wxMAC¶
wxGTK¶
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¶wx.FontDialog(Dialog)¶Possible constructors:
FontDialog() -> None
FontDialog(parent : Window) -> None
FontDialog(parent : Window, data : FontData) -> None
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.
None
__init__ (self, parent : Window)
Constructor with parent window.
parent (wx.Window) –
None
__init__ (self, parent : Window, data : FontData)
Constructor.
Pass a parent window, and the font data object to be used to initialize the dialog controls.
parent (wx.Window) –
data (wx.FontData) –
None
Create(self, *args, **kw)¶Creates the dialog if the wx.FontDialog object had been initialized using the default constructor.
True on success and False if an error occurred.
Create (self, parent : Window)
parent (wx.Window) –
bool
Create (self, parent : Window, data : FontData)
parent (wx.Window) –
data (wx.FontData) –
bool
GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
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.
int
See also
FontData¶See GetFontData