SetForegroundColour() under Gtk
Robin Dunn
robin at alldunn.com
Fri Jun 1 09:59:18 PDT 2007
Ed Leafe wrote:
> 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?
Some GTK themes don't allow color attributes to be changed.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list