[IMAGE-SIG] ImageTk Problem with PIL-0.3a1

Dirk Engelmann Dirk.Engelmann@iwr.uni-heidelberg.de
Wed, 15 Oct 1997 12:04:17 +0200 (MET DST)


Hi!

I've got a Problem with ImageTk in PIL-0.3a1. I.e. the thresholder.py
as an example doesn't work.

In PIL-0.2b4 it is working fine.

Is this a problem of PIL 0.3a1 or is it a problem of configuration ?



The command in threshold.py which causes the error is:

self.canvas.create_image(0, 0, image=self.backdrop, anchor=Tk.NW)


The error message is:

  File "thresholder.py", line 24, in __init__
    self.backdrop = ImageTk.PhotoImage(im)
  File
"/home/dengel/applications/Python/extensions/Imaging/Imaging/Lib/ImageTk.py",
line 65, in __init__
    self.paste(image)
  File
"/home/dengel/applications/Python/extensions/Imaging/Imaging/Lib/ImageTk.py",
line 81, in paste
    self.__photo.tk.call("PyImagingPhoto", self.__photo, block.id)
TclError: invalid command name "PyImagingPhoto"


Thanks for help!


Cheers,

Dirk Engelmann


_______________
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________