I already know that this post will be useful just to me, because I know that some­day I’ll forgot how to do this and I’ll be look­ing for a solu­tion. So here’s how to insert an image in a Tree­View ListView using python.

Tech­ni­cally, a ListView widget doesn’t exists, but it is a Tree­View with a List­Store model asso­ci­ated in place of a TreeModel. And this “howto” uses a ListView as exam­ple as it is easier to set up, but the con­cept remains the same for all the kind of TreeViews.

(Con­tinue reading…)