[wxPython] want to cPickle bitmaps using img2py encode_bitmaps.py

Hi there!
My app loads bitmaps for icons from ./pic/cut.bmp, ./pic/paste.bmp etc.
I want to compress all these bitmaps and store the cPickled data inline in my app code.

The demo has a file images.py containing:

···

#----------------------------------------------------------------------
# This file was generated by C:\projects\wx\wxPython\demo\encode_bitmaps.py
#
from wxPython.wx import wxBitmapFromXPMData, wxImageFromBitmap
import cPickle, zlib
def getMondrianData():
    return cPickle.loads(zlib.decompress(
'x\xda\xd3\xc8)0\xe4\nV76R\x00"3\x05Cu\xae\xc4`u\x05\x85d\x05\xa7\x9c\xc4\
\xe4l0/\x02\xc8Sv\x03\x030?\x1f\xc47\x00\x02(_\x0f"\x0f\x12\x01\xf3\xb5!\xf2\
NnP\xbe?L?\x94\xaf@\x00@\x14\xe9\x81\x81B\x04v0"\x14\x11\x15NP\x1dX\x0c\xc9\
\x07\x82!\xa9\x88(\xdf!\x85\xd3\xa8"\x92\x14a\x01\x98\x8a\xfc\x91\x80\x826\
\x08\x0c\x0bE\x84\xb3\x94\x1e\x00\xbf\x04Z\xed' ))

This is exactly what I want to do.

Looking at the ./demo/encode_bitmaps.py file, it imports img2py. I dont have this module:

[17:54:30]~/py/demo/demo:python2 encode_bitmaps.py
Traceback (most recent call last):
  File "encode_bitmaps.py", line 12, in ?
    import img2py
ImportError: No module named img2py
[17:55:06]~/py/demo/demo:

Please help me find this module (img2py), or advise otherwise.
Cheers,
BenG.

_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com