Tkinter: image doesn't exist.

Fredrik Lundh fredrik at pythonware.com
Fri Mar 2 08:40:16 CET 2001


David Allen wrote:
> What kind of a crappy error message is "image doesn't
> exist?"

it means exactly what it says: when created, the PhotoImage class
registers a photoimage object with Tk, but when you try to use it in
FooModule, it's no longer there.

are you perhaps using multiple root windows?

(each root has its own interpreter context, and images registered
in one context aren't visible in other contexts.  use Toplevel in-
stead).

Cheers /F

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->






More information about the Python-list mailing list