[wxPython-users] Image Problem - loosing transparent background
Robin Dunn
robin at alldunn.com
Tue Apr 3 11:01:01 PDT 2007
Geoff Skerrett wrote:
> Hope someone can steer me in the right direction.
>
> I have an application that displays a wx.StaticBitmap on a wx.Panel.
> The image is a .png image and has a transparent background.
> Within the application the image is loaded directly from a file.
>
> When I run the application thru the editor (in this case WingIDE) the
> image displays correctly and the background is transparent.
> When I run my setup script and create the exe thru py2exe, the image is
> displayed, but the background is black.
> -- the attached file show and example if the image run through the
> editor and then outside as an .exe
>
> I have opened the image with several image editing utilities and they
> ALL show the background as transparent.
>
> Using WinXP SP2, Python 2.4, wxPython 2.8.1
>
> Checked the MSVCRT71.dll versions too. The .dll in the dir where the
> application.exe is being run from reports the exact same version as the
> one in the system32 directory.
>
> I am stumped. Any suggestion as to where to look next ??
You are probably not waving microsoft's magic wand over your EXE and
pronouncing the dark incantation[1] that will cause it to use the new
themed version of the common controls. The old version of the static
bitmap control does not support alpha transparency in the bitmap.
[1] Look for the magic "manifest" word here:
http://wiki.wxpython.org/index.cgi/DistributingYourApplication
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list