Serialize a TreeStore

View: New views
2 Messages — Rating Filter:   Alert me  

Serialize a TreeStore

by Richie Ward :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I need to serialize a TreeStore. I tried to use pickle with no luck.
Is there a nice clean way that I can achieve this?
The reason I want this is so that I can save all the data in my
program, so I can load it all next time its ran.

--
Thanks, Richie Ward
_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: Serialize a TreeStore

by Walter Leibbrandt-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try serializing the data in/about the TreeStore rather than the object
itself.

Richie Ward wrote:
> I need to serialize a TreeStore. I tried to use pickle with no luck.
> Is there a nice clean way that I can achieve this?
> The reason I want this is so that I can save all the data in my
> program, so I can load it all next time its ran.
>
>  

[walter.vcf]

begin:vcard
fn:Walter Leibbrandt
n:Leibbrandt;Walter
org:Translate.org.za
adr:;;;Pretoria;Gauteng;;South Africa
email;internet:walter@...
title:Developer
tel;work:(012) 460 1095
x-mozilla-html:FALSE
url:http://translate.org.za/blogs/walter
version:2.1
end:vcard



_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
LightInTheBox - Buy quality products at wholesale price