[pygtk] Question about gtk.Entry
Tony Nelson
tonynelson at georgeanelson.com
Tue Apr 25 02:23:06 WST 2006
At 10:53 AM +0200 4/24/06, remi.sassolas at gmail.com wrote:
...
>I have a small problem with 'gtk.Entry'. Indeed I would like to change the
>color of the text of the Entry, but I don't know how.
>I tried to modify the pango.Layout of the Entry (see the small example
>bellow), but I didn't work (the text of the Entry was expected to become
>red).
...
I just use entry.modify_fg( gtk.STATE_NORMAL, gtk.gdk.Color(0xFFFF, 0, 0)
). Also, modify_base does the background.
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the pygtk
mailing list