projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blind fix for compilation under AIX: always include wchar.h if available, even if...
[wxWidgets.git]
/
wxPython
/
demo
/
wxFontDialog.py
diff --git
a/wxPython/demo/wxFontDialog.py
b/wxPython/demo/wxFontDialog.py
index f4c623feaea49c087c9b5f3121d1e30beef9bddd..551dc97dc5a2a9f3cacae034681565889dbf69c2 100644
(file)
--- 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()
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()
dlg = wxFontDialog(frame, data)
if dlg.ShowModal() == wxID_OK:
data = dlg.GetFontData()