1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def runTest(frame, nb, log):
|
2000-02-01 15:29:11 -05:00
|
|
|
data = wxFontData()
|
|
|
|
dlg = wxFontDialog(frame, data)
|
1999-04-29 23:29:54 -04:00
|
|
|
if dlg.ShowModal() == wxID_OK:
|
|
|
|
data = dlg.GetFontData()
|
|
|
|
font = data.GetChosenFont()
|
|
|
|
log.WriteText('You selected: "%s", %d points, color %s\n' %
|
|
|
|
(font.GetFaceName(), font.GetPointSize(),
|
|
|
|
data.GetColour().Get()))
|
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
|
|
This class represents the font chooser dialog.
|
|
|
|
|
|
|
|
wxFontDialog()
|
|
|
|
----------------------------
|
|
|
|
|
2000-02-01 15:29:11 -05:00
|
|
|
wxFontDialog(wxWindow* parent, wxFontData* data)
|
1999-04-29 23:29:54 -04:00
|
|
|
|
2000-02-01 15:29:11 -05:00
|
|
|
Constructor. Pass a parent window and a font data object, which will be copied to the font dialog's font data.
|
1999-04-29 23:29:54 -04:00
|
|
|
"""
|