Try this for your build script instead:
from distutils.core import setup
import py2exe
setup(
windows = [
{ 'script': "wxAppEXKalc.py", 'icon_resources': [(0x0004,
'horse.bmp')]}],
version="1.0",)
The difference is the 'script': part. I'm not sure on the icon question
as to what format it has to be. If you're setting the same icon as the
frame icon, you may have to distribute the icon with your project. I'm
not sure if there's a way around that or not, I haven't investigated it.
Greg
Great thanks for the help!!
I have a couple of questions. I have an icon I saved as a .bmp, is
there
a special format for icons that I am required to use? Secondly I have
an
error when I included the code that was recommended to me for my setup
file. here is my code and the error:#setup.py
from distutils.core import setup
import py2exesetup(windows = [{'wxAppEXKalc.py', 'icon_resources': [(0x0004,
'horse.bmp')]}], version = '1.0')-----------------------------------------------------------
" File "C:\Python23\lib\distutils\core.py", line 149, in se
dist.run_commands()
File "C:\Python23\lib\distutils\dist.py", line 907, in ru
self.run_command(cmd)
File "C:\Python23\lib\distutils\dist.py", line 927, in ru
cmd_obj.run()
File "C:\Python23\Lib\site-packages\py2exe\build_exe.py",
self.create_binaries(py_files, extensions, dlls)
File "C:\Python23\Lib\site-packages\py2exe\build_exe.py",
binaries
arcname, target.script)
File "C:\Python23\Lib\site-packages\py2exe\build_exe.py",
xecutable
add_icon(unicode(exe_path), unicode(ico_filename), ico_
RuntimeError: UpdateResource: The parameter is incorrect."Any thoughts?
Thanks
Jeff
From: Fred P [mailto:fredp@dial.oleane.com]
Sent: Wednesday, August 25, 2004 10:29 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] windows icon?Greg wrote:
> I believe the below should work. Substitute 'icon.ico' with the
> appropriate file name. I also seem to remember hearing that it
doesn't
···
On Wed, 2004-08-25 at 19:47, Jeff Peery wrote:
-----Original Message-----
> matter what the memory address is.
>
> windows = [
> { 'script': "script.py", 'icon_resources': [(0x0004,
> 'icon.ico')]}],The hearsay appears to be true. In my setup.py I have "1" instead of
0x0004 and it works just the same.