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 = wx.App(0)
frame = wx.Frame(None)
choices = “Be the change you want to see in the world”.split()
rb = wx.RadioBox(frame, label =“Some Reasonably Long Label”, choices=choices, style=
wx.RA_SPECIFY_COLS)
bigFont = 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.