[pygtk] combobox question

Casey McGinty casey.mcginty at gmail.com
Thu Jul 3 16:32:30 WST 2008


On Tue, Jul 1, 2008 at 11:23 AM, Chris Cole <ccole2 at mix.wvu.edu> wrote:

> Hey all,
> I have a simple combobox that i've created with glade. I was just
> wondering if i could set the sensitivity of the individual elements in
> the combobox? like setting a widget set_sensitive(False) ?


I think you can set the 'sensitive' property of the CellRendererText
instance stored in the the ComboBox instance. I believe you can use the
get_cells() method to access the instance. However, I'm not sure if there is
a dedicated CellRendereText instance for each row. Let me know if that helps
as I'm still trying to learn as well.

- Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080702/9be6ffef/at=
tachment.htm


More information about the pygtk mailing list