[pygtk] Disable gtk.Entry

Johan Dahlin jdahlin at async.com.br
Thu Feb 23 21:19:20 WST 2006


Arie Timmerman wrote:
> How can i show my users the gtk.Entry is disabled. I know how to set it
> disabled (set_editable(False)). But when i do this, the visual part
> doesn't change. So, how can i change the color. I allready tried this:


You could also solve it by setting the widget to insensitive, that has the
feature of not letting the user select the text, so it might not be the best
solution.

Alternatively change the background color to say gray.
Or put an icon next to it, there's code in kiwi[1] has code for doing
both tasks.

[1]: http://www.async.com.br/projects/kiwi/

-- 
Johan Dahlin <jdahlin at async.com.br>
Async Open Source


More information about the pygtk mailing list