[pygtk] Inserting into a TreeView
Steve McClure
smcclure at racemi.com
Fri May 1 22:06:33 WST 2009
On Apr 28, 2009, at 12:36 PM, Johannes Bauer wrote:
> 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.
It is complicated when compared to the old GtkCList widget. However,
as you discovered the new renderer/view/model system is much more
flexible and allows you do do much more than the old widgets could do.
>
> Thanks again for your help!
I'm glad I could help. Back in 2001 when I was getting started
everyone on the mailing list was alway very helpful to me and it feels
good to be able to contribute.
>
> Kind regards,
> Johannes
>
--
Steve McClure
smcclure at racemi.com
More information about the pygtk
mailing list