How do I set the foreground color of a widget without using rc files or
strings? I've tried this (w being a displayed gtk.Button instance in my
example)
gc = w.window.new_gc()
color = gtk.gdk.color_parse("red")
w.modify_fg(gtk.STATE_NORMAL, color)
and
gc = w.window.new_gc()
color = gtk.gdk.color_parse("red")
gc.set_foreground(color)
but neither had any effect. I'm using the 2.0 API and the new
ExtensionClass-less PyGtk API.
Thanks,
--
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk