Problem with Tkinter.PhotoImage
Achim.Gaedke at zpr.uni-koeln.de
Tue Feb 20 13:25:28 CET 2001
I've tested some features of the Tkinter.Canvas and found an odd
Here is the example that works:
And now a simple example that does not show the image and does not
generate runtime errors.
This example is the simplest. Here is a more elaborate case (my original
This doesn't work. Just change the line
this reveals the reason of the strange behaviour. There is no reference
left on Tkinter.PhotoImage, so it is destructed.
But I do not think, that it should be, just because Phython is an "easy
going" language with reference counters and should keep one reference,
although this is held by the canvas-item image.
Does someone have the same problem with this behaviour?
More information about the Python-list