[pygtk] Inserting into a TreeView
Johannes Bauer
dfnsonfsduifb at gmx.de
Wed Apr 29 00:36:52 WST 2009
Steve McClure schrieb:
>> How can I do this easily?
>
> Easy is a relative word.
:-)
> Have you read the main tutorial on this topic?
>
> http://www.pygtk.org/pygtk2tutorial/ch-TreeViewWidget.html
Yup, I read this, but it seems that I missed the important part (tried
to copy & paste & modify, but always something went wrong). Your code,
on the other hand:
> I'm pretty rusty on this now but basically something like this:
[Code]
Was not rusty at all, but made me finally understand what I'm actually
doing - and I now got it working. It seems that I lacked a deeper
understanding of why GTK did the things so "complicated" (CellRenderer,
etc.) - now I read a whole lot about it and finally get it! And I love
the idea of having that so flexible. It really actually is very cool,
but nothing for GTK novices like myself.
Thanks again for your help!
Kind regards,
Johannes
More information about the pygtk
mailing list