[wxPython-users] Loading resources from an archive

Josiah Carlson jcarlson at uci.edu
Mon Sep 4 01:15:43 PDT 2006


"Saketh Bhamidipati" <saketh.bhamidipati at gmail.com> wrote:
> I have a zip file from which I want to load PNG resources. I load archives
> using this very simple wrapper class.
...
> I want to be able to load wx.Images from the archive without having to
> extract intermediate files. Is this possible?

Use wx.ImageFromStream, creating a stream via cStringIO.StringIO(data) .

 - Josiah





More information about the wxpython-users mailing list