On 26/08/10 21:26, Robert Park wrote: > On Wed, Aug 25, 2010 at 12:27 AM, Andrew <[email protected]> wrote: >> On 25/08/10 01:59, Robert Park wrote: >> Instead of using 3 CellRendererText's, all you need to do is use one, >> and then when you append an item to the model of the treeview >> (gtk.ListStore etc.) all you must do is: >> >> model.append([thumbnail, "filename.png\nfoo\nbar"]) > > Oh, this is perfect, thank you. The only drawback I see here is that > my liststore model is going to have to have a special column for > redundant "display" information vs. the raw data (eg, I have a column > for /path/to/filename.jpg and a column for foo and for bar, and now I > need a column for basename.jpg\nfoo\nbar. Makes the data store a > little bit redundant but it works, so I'll take it ;-) > > Thanks again! >
Yeah this is what I normally do, so I'd have: model.append([thumbnail, "filename.png\nfoo\nbar", file_data]) And then just not have a column or cellrenderer for this data. Your welcome! :) -- Andrew _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
