X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..3f4f90c2a0c1f274d1918b320132ed0ca2922fe5:/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()