I have an app where a text control needs to be displayed in red if certain conditions apply. The code that does this looks like:
theTextCtrl.SetForegroundColour((255, 0, 0))
This works great under OS X and Windows, but has no effect on Gtk: the text remains black. It has been tested on Kubuntu 7.04 and OpenSUSE 10.2, with both wxPython 2.6.x and 2.8.4.
I have an app where a text control needs to be displayed in red if certain conditions apply. The code that does this looks like:
theTextCtrl.SetForegroundColour((255, 0, 0))
This works great under OS X and Windows, but has no effect on Gtk: the text remains black. It has been tested on Kubuntu 7.04 and OpenSUSE 10.2, with both wxPython 2.6.x and 2.8.4.
Any ideas as to what the problem could be?
This is probably a problem with the GTK theme.
Hmm... It also happens when there is no theme active, which I didn't expect. Please enter a bug report about this one.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!