On 12/9/06, Vedran <vedran@v-programs.com> wrote:
Hello,

I using py2exe for my script installing,and I have one problem about it,actually
the real problem is
tkinter window iconbitmap:

  import Tkinter
  root=Tkinter.Tk()
  root.iconbitmap(' myicon.ico')  # I was try and with myicon.bmp


Then after I install myscript in .exe,and when I run it I got error in some
strange window:

window title: Error occurred
window message:  See the logfile
'c:\Python24\Lib\site-packages\dist\myscript.exe' for details

and that error "make" in install directory one .log file, and that file I run
with notepad and
in that  notepad file
write error:

   Traceback (most recent call last):
  File "myscript.py", line 3, in ?
  File "Tkinter.pyc", line 1448, in wm_iconbitmap
_tkinter.TclError: bitmap "myicon.ico" not defined


Thanks!!!!!!!!!

The problem is .exe file is not able to find the myicon.ico file(probably of the reason it is not in the path where .exe is looking for it), Nothing much to worry about this error , simply copy the myicon.ico file into the 'dist'  directory where the .exe file is getting created. That should solve the trouble.


--
Godson Gera,
http://godson.auroinfo.com