On 18-08-10 12:01, Greg Bair wrote:
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.
Sorry for the double-post, but check the FAQ for more information on how to add a pixbuf in a treeview: http://faq.pygtk.org/index.py?req=show&file=faq13.006.htp

Cheers,
Timo

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to