SetForegroundColour() under Gtk

Ed Leafe ed at leafe.com
Fri Jun 1 05:48:52 PDT 2007


	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?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com






More information about the wx-users mailing list