X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4bde64fd21e48073d8833de15251c7f012e9752..0c3d4bfdcfa2c0abb8231fdf20c0d705dffbedc9:/utils/wxPython/demo/wxFontDialog.py diff --git a/utils/wxPython/demo/wxFontDialog.py b/utils/wxPython/demo/wxFontDialog.py index ec1caa73ff..f4c623feae 100644 --- a/utils/wxPython/demo/wxFontDialog.py +++ b/utils/wxPython/demo/wxFontDialog.py @@ -4,7 +4,8 @@ from wxPython.wx import * #--------------------------------------------------------------------------- def runTest(frame, nb, log): - dlg = wxFontDialog(frame) + data = wxFontData() + dlg = wxFontDialog(frame, data) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() @@ -33,7 +34,7 @@ This class represents the font chooser dialog. wxFontDialog() ---------------------------- -wxFontDialog(wxWindow* parent, wxFontData* data = NULL) +wxFontDialog(wxWindow* parent, wxFontData* data) -Constructor. Pass a parent window, and optionally a pointer to a block of font data, which will be copied to the font dialog's font data. +Constructor. Pass a parent window and a font data object, which will be copied to the font dialog's font data. """