Thanks for the reply Werner:

> And my icon inclusion code is as follows:
>
>         exeName = win32api.GetModuleFileName(win32api.GetModuleHandle(None))
>         self.SetIcon(wx.Icon(exeName, wx.BITMAP_TYPE_ICO))
I wouldn't use the win32api for this as they are Windows specific.

Not really an solution to your problem, but another way to get to Rome:)

I do this:
         icon = myimages.getlogo32v1Icon ()
         self.SetIcon(icon)

myimages is an image resource file created with py2img

 I was looking for a way to implement your solution, but was unable to find any information about the py2img module.   A google search for it returned nothing as did a sourceforge search.  Is there a place you can point me to where I can find more information about the module?

On 4/18/07, Werner F. Bruhin <werner.bruhin@free.fr > wrote:
Hi James,

James Howard wrote:
> I appologize in advance if this is a duplicate of my previous email.
> The last email I sent was returned with a unable to deliver
> notification.  Below is my question concerning the issue captioned in
> the subject.
I only see it once.
>
> I am relatively new to using py2exe and have enjoyed it so far.  The
> problem I am having however comes with Vista.  I am trying to embed an
> icon into the executable file for my program.  I followed the
> instructions on the py2exe wiki and was able to get it to work well on
> my XP computer, but on Vista I get a file not found error.  Including
> the .ico file in the directory with the exe has not worked yet either.
>
> Is this a known error that people have been having and is there a fix
> for it?  Or am I just doing something incorrectly.
>
> My setup.py file contains the following:
>
> from distutils.core import setup
> import py2exe
> import sys
> sys.argv.append("py2exe")
> setup(windows = [{"script": 'Authorizer.py', "icon_resources": [(0,
> " LabJackIcon.ico")]}])
>
> And my icon inclusion code is as follows:
>
>         exeName = win32api.GetModuleFileName(win32api.GetModuleHandle(None))
>         self.SetIcon(wx.Icon(exeName, wx.BITMAP_TYPE_ICO))
I wouldn't use the win32api for this as they are Windows specific.

Not really an solution to your problem, but another way to get to Rome:)

I do this:
         icon = myimages.getlogo32v1Icon ()
         self.SetIcon(icon)

myimages is an image resource file created with py2img

Werner


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users