]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxFontDialog.py
Compilation fixes for Nano-X
[wxWidgets.git] / wxPython / demo / wxFontDialog.py
index f4c623feaea49c087c9b5f3121d1e30beef9bddd..551dc97dc5a2a9f3cacae034681565889dbf69c2 100644 (file)
@@ -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()