[pygtk] funkiness with gtk constants and CellRendererPixbuf
Timo
timomlists at gmail.com
Thu Aug 19 02:14:05 WST 2010
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 pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list