wx.FontDialog

Inheritance diagram for wx.FontDialog:



Description

This class represents the font chooser dialog.

Methods Summary

Properties Summary

Class API

Methods

__init__(parent, data)

Constructor. Pass a parent window and the wx.FontData object to be used to initialize the dialog controls. Call 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.

Parameters:


Returns:

wx.FontDialog


GetFontData()

Returns the font data associated with the font dialog.


Returns:

wx.FontData


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

FontData
See GetFontData