From: Kevin A. <al...@se...> - 2007-05-22 17:00:24
|
You're probably going to have to ask on the wxPython list. This might be a 2.6.x issue or possibly a different DLL is getting used with the EXE and it doesn't properly support transparency with PNGs. At a minimum, you'll need to do some debug dumps of what is getting used on the different runs so you can verify the version of Python, wxPython, etc.; simply running the executable with the -s or -d option might be good enough for that. ka On May 22, 2007, at 9:21 AM, Phil Edwards wrote: > Hi All: > > I'm written a short program for use at work - both the target and > development > platform is WinXP and I have Python 2.4, wxPython 2.6.3.2 and > PythonCard > 0.8.2 on the machine where I'm writing/testing the code. > > The program has the company logo displayed on the UI in the form of a > transparent PNG graphic in the bottom right corner of the panel. > The logo > displays perfectly when I run my code either from a DOS prompt or by a > double-click on the .py file in explorer. > > When I package the program up into an EXE, using standaloneBuilder, > the > resultant executable does not display the graphic correctly. It > shows up with > a black background instead of transparent. I get the same result > regardless > of whether I use pyInstaller or py2exe to do the conversion to EXE, > which > suggests to me that the problem may be due to the altered execution > environment that is present when running a standalone application. > > Problem is, I have absolutely no idea where to start looking to > troubleshoot > this - can anybody offer any suggestions to get me going? The only > thing I > was able to think of was explicitly setting the background colour > on the > Image component so it matched the colour of the panel, but this > didn't make > any difference. > > -- > > Regards > > Phil Edwards > Brighton, UK |