Hi tutors,
So I finally made my program. When I run it with python, it works perfectly!
But when I convert it to an executable using py2exe (correctly), I get an error:
Traceback (most recent call last):
File "oentry.py", line 52, in <module>
File "Tkinter.pyc", line 3270, in __init__
File "Tkinter.pyc", line 3226, in __init__
_tkinter.TclError: Couldn't open "base.gif": no such file or directory
alright,, I know what you're talking about, Mr.Python... I linked an image to
the python file, but the exe can't find it.. (right?)
anyways, here's the snippet of my code which uses the "base.gif"
pic = tkinter.PhotoImage
base = pic(file="base.gif")
Now, I'm just wondering... for the "base.gif" part, would it be better to write
out the whole directory?
any help would be appreciated. Thanks a bunch!
-Christopher "script teeny" Leeeeee
_________________________________________________________________
Share photos with friends on Windows Live Messenger
http://go.microsoft.com/?linkid=9650734
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor