[pygtk] Re: A Multilevel Liststore
Jeffrey Barish
jeff_barish at earthlink.net
Wed Jul 9 23:32:12 WST 2008
Shadi Azoum wrote:
> Hi,
>
> I am trying to make a hierarchal structure using the PyGTK ListStore.
> What would the code look like for a multilevel structure such as the
> one below:
>
> Parent 1
> Child 1.1
> Child 1.2
> Parent 1.3
> Child 1.3.1
> Child 1.3.2
> Child 1.4
> Parent 2
> Child 1
> Child 2
> ...
>
> I know the code if it was just one parent with multiple children, but
> not when those children are the parents of others.
Use a TreeStore instead of a ListStore.
--
Jeffrey Barish
More information about the pygtk
mailing list