[pygtk] TreeModel from Dot Notation
Patty Ackermann
patty.ackermann at gmail.com
Mon Aug 18 10:59:23 WST 2008
Hi,
I am trying to make a treeview out of some data, namely produce. The data
contains an arbitrary number of items, with each item representing a series
a levels. For example,
produce_list = [Fruit.Apple.Green, Fruit.Orange.Tangerine, Fruit.Banana,
Vegetable.Tomato.Red.Ripe,...]
The treemodel I want must look like this:
Fruit
Apple
Green
Orange
Tangerine
Banana
Vegetable
Tomato
Red
Ripe
Does anyone have any clues as to how I could do this? I wish there was some
way to interpret the '.' notation and get some sort of treeview out of it.
Thanks a million in advance.
-Patty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080817/bc54b84f/attachment-0001.htm
More information about the pygtk
mailing list