X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..a81c3c2383f9096ef5e96b708a0f1c1ffe7cc6a8:/wxPython/demo/wxFontDialog.py diff --git a/wxPython/demo/wxFontDialog.py b/wxPython/demo/wxFontDialog.py index f4c623feae..551dc97dc5 100644 --- a/wxPython/demo/wxFontDialog.py +++ b/wxPython/demo/wxFontDialog.py @@ -5,6 +5,10 @@ from wxPython.wx import * def runTest(frame, nb, log): data = wxFontData() + data.EnableEffects(true) + font_colour = wxColour(255, 0, 0) # colour of font (red) + data.SetColour(font_colour) # set colour + print data.GetColour() dlg = wxFontDialog(frame, data) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData()