how can I change the foregroundcolor of a disabled TextCtrl from wxPython?
I mean, when I change the color with SetForegroundColour it only changes for enabled status. When I disable the TextCtrl, it remains dark grey even if I set it red, for example.
Thanks in advance!
import wx
class MainFrame(wx.Frame):
def __init__(self, *args, **kwargs):
super(MainFrame, self).__init__(*args, **kwargs)
self.InitUI()
self.Fit()
self.Show(True)
def InitUI(self):
text = wx.TextCtrl(self)
text.SetForegroundColour((255,0,0))
text.SetValue('Example')
text.Enable(False)
def main():
app = wx.App()
MainFrame(None)
app.MainLoop()
if __name__ == '__main__':
main()