[Image-SIG] Problem with PIL -Subscribe

Adeniyi Adebowale Oke Adeniyi Adebowale Oke" <oke@sask.trlabs.ca
Thu, 13 Apr 2000 19:19:42 -0600

I would like someone to please help me. I am using Python 1.5.2 version and
I also installed PIL. Bellow is the problem.

>>> import Image
>>> import Tkinter
>>> import ImageTk
>>> im = Image.open('dive.dif')
Traceback (innermost last):
  File "<pyshell#3>", line 1, in ?
    im = Image.open('dive.dif')
  File "C:\Program Files\Python\PIL\Image.py", line 866, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'dive.dif'
>>> im = Image.open('dive.gif')
>>> im = ImageTk.PhotoImage(im)
Traceback (innermost last):
  File "<pyshell#5>", line 1, in ?
    im = ImageTk.PhotoImage(im)
  File "C:\Program Files\Python\PIL\ImageTk.py", line 83, in __init__
    self.__photo = apply(Tkinter.PhotoImage, (), kw)
  File "C:\Program Files\Python\Lib\lib-tk\Tkinter.py", line 1874, in
    apply(Image.__init__, (self, 'photo', name, cnf, master), kw)
  File "C:\Program Files\Python\Lib\lib-tk\Tkinter.py", line 1839, in
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: can't invoke "image" command:  application has been destroyed

I just want to use the Display the image in the Label Widget but
unfortunately, it seems to be crashing anytime i dear to to that.

Thanks for your urgent response.