This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients
Date 2002-12-08.12:37:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=21627

As there appears to be agreement that the current behaviour
cannot be changed, I'd like to propose the attached
image.txt as a patch.

With this patch, people who want to explicitly delete images
need to pass a delete=False option to the image ctor, i.e.

i = Tkinter.PhotoImage(file="fn", delete=0)

Then, when they want to delete the image, they need to call

i.delete()

If that is an acceptable solution, I'll apply it to Python
2.3. In the case of the original report, the image would
become garbage eventually, since the only reference to
delete it was a local variable, which is lost.
History
Date User Action Args
2007-08-23 14:07:45adminlinkissue632323 messages
2007-08-23 14:07:45admincreate