I am using wxpython version 188.8.131.52 and python 2.7.9.
I am trying the change the color of the text for a radio button. I initialized by:
button = wx.RadioButton(panel, -1, 'Line', (200, 300))
I was able to change the color around the radio button by:
button.SetBackgroundColour((150, 150, 150))
But this is not the behavior I want. I want to change the color of the text, not the area around it. I expected that changing the foreground colour would change the text color of the radio button, as that is how the color is changed for static text (as shown here Change the colour of a StaticText, wxPython). The code I used for this is:
button.SetForegroundColour((0, 255, 0))
However, for reasons unknown to me, this did not change anything about the radio button. Am I mistaken that this command should change the text color of the radio button, and if so, what is the proper command?
Thanks in advance!