[python-2.2.1, gtk-2.1.1 pygtk-1.99.14, linux]
How can I change the grey background of an insensitive gtk.Entry?
I tried:
self.entry = gtk.Entry()
map=self.entry.get_colormap()
red=map.alloc('red')
style=self.entry.get_style().copy()
style.bg[gtk.STATE_INSENSITIVE] = red
self.entry.set_style(style)
from the FAQ, but it seemed to have no effect. Trying to set the foreground color
likewise had no effect...
I need the insensitive entry to be a much lighter grey (or the foreground to be
a full black) because it's too hard to read. This widget gets dynamically switched
between writable and read-only during the session. But even when read-only, it needs
to
be easily and clearly readable. I could just manipulate 'editable', but then it still
accepts the focus and frustrates people who try to type at it.
-- George
--
I cannot think why the whole bed of the ocean is
not one solid mass of oysters, so prolific they seem. Ah,
I am wandering! Strange how the brain controls the brain!
-- Sherlock Holmes in "The Dying Detective"
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/