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 [email protected] _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
