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 effbot
Recipients
Date 2002-12-08.13:30:58
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=38376

MvL wrote: 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.

+1 from here.

I should probably write an essay some day on why the
current behaviour is the only one that makes sense if
you consider all common use cases -- if you don't do it
this way, you either end up with leaks, code that works
only by accident, or code that is a lot more convoluted
than the simple assignment that is necessary to work
around this problem in real life:

     photo = PhotoImage(...)
     widget = Label(master, photo=photo)
     widget._photo = photo # keep a reference

martin has already covered most other issues.

</F>
History
Date User Action Args
2007-08-23 14:07:46adminlinkissue632323 messages
2007-08-23 14:07:46admincreate