[pygtk] Question about gtk.Entry
remi.sassolas at gmail.com
remi.sassolas at gmail.com
Tue Apr 25 16:37:15 WST 2006
On 4/24/06, Tony Nelson <tonynelson at georgeanelson.com> wrote:
>
> I just use entry.modify_fg( gtk.STATE_NORMAL, gtk.gdk.Color(0xFFFF, 0, 0)
> ). Also, modify_base does the background.
>
Hi,
Thank you for your answer Tony, these two functions may prove usefull indeed
!
But unfortunately it works neither with my real application nor with the
example I put in my previous mail :-(
I have tried to modify the first argument of 'modify_fg' (the state of the
widget) but it didn't work any better.
# File modified_example.py
import gtk
import pango
def entry_changed_callback(entry):
entry.modify_fg(gtk.STATE_NORMAL, gtk.gdk.Color(0xFFFF, 0, 0))
window=gtk.Window()
entry = gtk.Entry()
entry.connect('changed', entry_changed_callback)
window.add(entry)
window.show_all()
gtk.main()
# End of file
Any idea of what's going wrong ?
--
Remi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060425/62163d97/attachment.html
More information about the pygtk
mailing list