Fredrik Lundh fredrik at
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\",
> line 310, in RunScript
>    exec codeObject in __main__.__dict__
>  File "C:\Python23\Examples\AppB\", line 24, in ?
>    text.image_create(END, image=photo)
>  File "C:\Python23\lib\lib-tk\", line 2882, in image_create
>    return
> 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?


More information about the Python-list mailing list