[PyKDE] Can I pickle PyQt stuff?
Green, Gregory P
gregory.p.green at boeing.com
Thu Jun 27 23:03:01 BST 2002
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 at gmx.net]
Sent: Thursday, June 27, 2002 12:58 PM
To: Stephen Green; pykde at 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 at mats.gmd.de
> http://mats.gmd.de/mailman/listinfo/pykde
--
Vieles ist einfach, der Rest zweifach.
_______________________________________________
PyKDE mailing list PyKDE at mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
More information about the PyQt
mailing list