On Sat, 3 Apr 2004 03:13:05 -0800
"David M. Cook" <[EMAIL PROTECTED]> wrote:

[pickling a tree]
> Options I can think of:
> 
> 1. Traverse the tree (TreeModel.foreach and TreeModel.get_value) 
>    and save each node.  You can use the path as a key, and it's then
>    easy to rebuild the TreeModel.
>    
> 2. Save nodes in the tree as they are added.  It may help to subclass
>    TreeStore.
>    
> 3. Write you own TreeModel that can be persisted at once.
> 
> Dave Cook

Hmm, I think that the n.1 is the most simple, but however you have to
cicle the list and rebuild the tree, as far I can see.
I'm not sure I understood n.2, and n.3 is far from my knowledge at the
time :-D
Thank you.

-- 

 |\ |       |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to