I made some good progress on this, and even have things working,
though with a bit of duct tape.

First off, I had to manually import numpy in the application I was
compiling, or else I'd crash horribly with an error related to
multiarray.pyd.

With that solved I wasn't crashing, but my bitmapcanvas wasn't being
drawn, it simply remained a white box. It looks like this is due to a
problem with the bitmapcanvas module of PythonCard and the PIL. If you
look at bitmapcanvas.py you'll see it tests for the existance of the
PIL by running "from Image import fromstring", which works fine
uncompiled, but compiled it returns the error "ImportError, cannot
import name fromstring". It also fails the conditional inside the
drawbitmapCanvas function isinstance(aBitmap, Image.Image). With both
of those failures it never defines the bitmap object, and therefore
the bitmap canvas isn't updated.

My kludgey solution was to comment out all the conditionals in the
drawBitmap function and manually define the bmp object:

bmp = wx.BitmapFromImage(graphic.PILToImage(aBitmap))

This works, but I'm sure it'll get me into trouble down the line.

Does anyone have any theories on this?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to