ganesh gajare wrote:
> Hello,
> I have created an entry box widget using glade.
> and I am doing validation on that field...
> So whenever an invalid text is entered in the entry box,the text color
> of entry should change dynamically..
I haven't tested this, but the method 'modify_text' should do what you
need. For example, to set the text to red, use:
entry.modify_text(gtk.gdk.color_parse('red'))
and to set it back to the default black:
entry.modify_text(None)
--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/