[pygtk] Re: Icon in TreeStore problem?
Muhammad Ali
ali.jan at gmail.com
Thu Mar 31 15:22:18 WST 2005
Okay sorry for the bother, I am stupid. Append of tree store needs to
be passed an additional parameter.
On Thu, 31 Mar 2005 11:38:35 +0500, Muhammad Ali <ali.jan at gmail.com> wrote:
> Hi,
>
> This is related to the FAQ entry, How do I put Icons in a TreeView:
> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.006.htp
>
> The problem is that the example uses a ListStore instead of a
> TreeStore and then appends the icon to it. When I use the same append
> method with the TreeStore, it throws a TypeError exception:
>
> TypeError: parent must be a GtkTreeIter or None
>
> But the same method works fine with a ListStore. How do I put Icons in
> a TreeView using TreeStore?
>
> Thanks...
>
> Regards,
> Ali
>
More information about the pygtk
mailing list