Wondering if anyone has a set of these to allow for storing simple wxPython objects in pickles (I'm thinking particularly of things like images, bitmaps, icons, rects, colours, etceteras)? I've just realised that my code that makes it safe to store wxPython objects in properties of pickle-able objects also is responsible for the horrible slowdowns in the property editors (well, I realised it would be slow, just didn't realise how slow until this evening). I could get around it by making the holding objects hook the getstate and muck about with the various properties, but it would be so much nicer to just make the values pickle-friendly.
Enjoy yourselves,
Mike
···
_______________________________________
Mike C. Fletcher
http://members.rogers.com/mcfletch/
Oops, realised I didn't make this very clear... I have basic functions for those items I currently have implemented in wxprop and basicproperty, I was wondering more about a more complete and thoroughly tested set.
For instance, I don't currently have bitmap, rect, brush, icon, palette, region, dates (I use mx.DateTime for those), points, or size.
I do have basic __getstate__/__setstate__ for colour, font, pen and image. (And I just integrated them, and using them does make the system go from 1-second delays to way under 1-second delays in some of the problem areas).
Also, would anyone be interested in this module as a stand-alone (even if I don't get all the various primitive types done?) It's current a simple module that just adds __getstate__ and __setstate__ methods to the various XPtr classes on import.
Enjoy yourselves,
Mike
Mike C. Fletcher wrote:
···
Wondering if anyone has a set of these to allow for storing simple wxPython objects in pickles (I'm thinking particularly of things like images, bitmaps, icons, rects, colours, etceteras)? I've just realised that my code that makes it safe to store wxPython objects in properties of pickle-able objects also is responsible for the horrible slowdowns in the property editors (well, I realised it would be slow, just didn't realise how slow until this evening). I could get around it by making the holding objects hook the getstate and muck about with the various properties, but it would be so much nicer to just make the values pickle-friendly.
Enjoy yourselves,
Mike
_______________________________________
Mike C. Fletcher
http://members.rogers.com/mcfletch/