Inserting images in a TreeView/ListView
September 11th, 2007
I already know that this post will be useful just to me, because I know that someday I’ll forgot how to do this and I’ll be looking for a solution. So here’s how to insert an image in a TreeView ListView using python.
Technically, a ListView widget doesn’t exists, but it is a TreeView with a ListStore model associated in place of a TreeModel. And this “howto” uses a ListView as example as it is easier to set up, but the concept remains the same for all the kind of TreeViews.