[pygtk] PyGobject set pixbuf value to None
Yann Leboulanger
asterix at lagaule.org
Wed Dec 26 05:15:28 WST 2012
On 12/18/2012 11:08 PM, Yann Leboulanger wrote:
> Hi,
>
> I am trying to port my application to Gobject introspection, and I am
> facing a problem. I have a TreeModel that contains a GdkPixbuf.Pixbuf
> in one of its columns. When I try to do:
>
> model[iter][PIXBUF_COL] = None
>
> I get a Traceback saying:
>
> TypeError: Argument 3 does not allow None as a value
>
> So I wonder how can I do to not show a pixbuf for this iter. I found
> this thread suggesting that it's a bug in GObject, but is that true?
> http://comments.gmane.org/gmane.comp.genealogy.gramps.devel/23022
>
>
> Thanks in advance for your help,
Is there really no way to set no pixbuf for a given row??
--
Yann
More information about the pygtk
mailing list