RadioBox problems

Peter Damoc pdamoc at gmail.com
Mon Apr 16 23:58:18 PDT 2007


There is a problem with the font used in the label of a Radiobox when the
color of the foreground is changed.
Commenting the SetForegroundColour allows the label to appear normal but I
need to change the color.

#----------------- test code -----------------
import wx

app =3D wx.App(0)
frame =3D wx.Frame(None)
choices =3D "Be the change you want to see in the world".split()
rb =3D wx.RadioBox(frame, label =3D"Some Reasonably Long Label",
choices=3Dchoices, style=3Dwx.RA_SPECIFY_COLS)
bigFont =3D wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD, 0, "")
rb.SetFont(bigFont)
rb.SetForegroundColour("blue")
frame.Show()
app.MainLoop()
#----------------- end test code -----------------

Are there any workarounds?

Peter
P.S.
My machine: wxpython 2.8.3.0 on py2.4.4 on WinXPSP2

-- =

There is NO FATE, we are the creators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-dev/attachments/20070417=
/a3c94f1c/attachment.htm


More information about the wxpython-dev mailing list