image

Fredrik Lundh fredrik at pythonware.com
Tue Nov 8 09:46:39 CET 2005


Shi Mu wrote:

> why the following code report the error:
> Traceback (most recent call last):
>  File "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
> line 310, in RunScript
>    exec codeObject in __main__.__dict__
>  File "C:\Python23\Examples\AppB\text.py", line 24, in ?
>    text.image_create(END, image=photo)
>  File "C:\Python23\lib\lib-tk\Tkinter.py", line 2882, in image_create
>    return self.tk.call(
> TclError: image "pyimage4" doesn't exist

works for me, when running it from a stock CPython interpreter.

have you tried running the script outside the pywin environment?

</F>






More information about the Python-list mailing list