Re: [PythonCE] Tkinter PhotoImage, no such file or directory

2006-04-30 Thread Patrick Kramer
> > You can tell Python using os.chdir(), but that will not necessarily have any > effect on Tkinter because the operating system has no concept of a "current > directory", so it depends on whether the image file is opened in the Python > code or the C code. > > Luke > So there is no way for pyt

Re: [PythonCE] Tkinter PhotoImage, no such file or directory

2006-04-28 Thread Patrick Kramer
> Patrick Kramer wrote: >> I have two files which are both in the PyGlucoCE directory off of root. >> >> Tkintertest.py >> BtnGluco.gif >> >> >> >> Here is my code: >> >> import sys >> >> sys.path.append('\

[PythonCE] Tkinter PhotoImage, no such file or directory

2006-04-28 Thread Patrick Kramer
I have two files which are both in the PyGlucoCE directory off of root. Tkintertest.py BtnGluco.gif Here is my code: import sys sys.path.append('\\Program Files\\Python24\\python24.zip\\lib-tk') sys.path.append('\\PyGlucoCE') from Tkinter import * root = Tk() ImgGlucose = PhotoImage(file =