[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    RE: [PyKDE] Can I pickle PyQt stuff?
From:       "Green, Gregory P" <gregory.p.green () boeing ! com>
Date:       2002-06-27 21:01:53
[Download RAW message or body]

I solved this problem last year by using __getstate__ and __setstate__ in my
classes to dump and restore the information for the Qt class, and then
creating the class instance when loading. I only had to do a couple of them,
so it wasn't a problem. Not a general solution.

-----Original Message-----
From: Willi Richert [mailto:mennosimons@gmx.net]
Sent: Thursday, June 27, 2002 12:58 PM
To: Stephen Green; pykde@mats.gmd.de
Subject: Re: [PyKDE] Can I pickle PyQt stuff?


Hi,

QCanvas, etc. are all C++-Classes so pickle will not work. Maybe marshal
does,
but I also thing it won't. Although I've not yet tried, I would suggest
QDataStream which provides serialization of binary data to a QIODevice.

willi

On Thursday 27 June 2002 21:37, Stephen Green wrote:
> I'm trying to save a QCanvas as well as QCanvasItems, but I always get
> errors while pickling.  Is there a way to make it work?
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> _______________________________________________
> PyKDE mailing list    PyKDE@mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde


-- 
Vieles ist einfach, der Rest zweifach.

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic