Re: populating a TreeStore in reverse order



On 6/22/05, Quentin <squentin free fr> wrote:
It's not what I meant, I meant keep all the data in a perl array/hash,
and use a custom store that get the data from the perl array/hash.
That way you don't have to fill the store, the data are already there.
It's much more complex but it can fit your needs, I use it with a list
of 15000 rows, and creating/displaying the treeview is really fast on a
duron800 :).

That should be an idea. Do you have a link to some docs for it? 


But my first solution could work: you load data until you have a full
branch (starting from depth 0), then prepend the root of the branch to
the store and fill this branch, load next branch ...
It depends on what kind of data you have.

You can think at it as a hard disk directory tree. So, lot of branches
at different depths.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]