[pygtk] funkiness with gtk constants and CellRendererPixbuf

Greg Bair gregbair at gmail.com
Wed Aug 18 18:01:46 WST 2010


Hi all,

When setting an attribute for a CellRendererPixbuf like so:

column.add_attribute(render_pixbuf, 'stock-size', gtk.ICON_SIZE_BUTTON)

I got the following error:

Warning: unable to set property `stock-size' of type `guint' from value
of type `gchararray'

The GTK+ C ref says that these are the correct constants to use.  What
am I doing wrong?  BTW, the stock icon is gtk.STOCK_APPLY, if that helps
any.



More information about the pygtk mailing list