GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 23, 2014 3:22 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Tree with icons (python-gtk)
PostPosted: Tue Mar 19, 2013 10:20 am 
Offline

Joined: Tue Mar 19, 2013 9:43 am
Posts: 1
Hello,

I have seen different python-gtk tree and list implementations. I can implement a list using icons (as Pixbuf) as well as a simple treeview using text information only.

What I need is a python code example that implements this: http://gambasdoc.org/image/control/:treeview

... which represents a tree with ¨+¨and ¨-¨signs (expand, collapse) and icons in front of every level. So the question is: How can I implement a structure that is a hierarchical tree and has icons at the same time?


Greetings
Danny


Top
 Profile  
 
 Post subject: Re: Tree with icons (python-gtk)
PostPosted: Wed Mar 20, 2013 6:47 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
Hi and welcome,

I do not know Python very well, so if I was to write something it would be a horrible mess.

Since you know how to use the GtkListStore and GtkPixBuf with the GtkTreeview then using the GtkTreeStore is just and extension to the GtkListStore that would give you what you want.

The Python GTK+ 3 tutorial is at http://python-gtk-3-tutorial.readthedocs.org/en/latest/ and that shows how to use the GtkTreeStore

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group