Random832 wrote:

> On Sat, May 21, 2016, at 12:54, Peter Otten wrote:
>> It's not your fault, there's an odd quirk in the library: you have to
>> keep a reference of the PhotoImage instance around to prevent the
>> image from being garbage-collected.
> 
> Just out of curiosity, why is this a "quirk" and not a bug? 

I agree that this is at least a usability bug, but I think someone with a 
clue (Fredrik Lundh?) wrote it that way intentionally.

> Why isn't the reference held by the Label?

I can only speculate: to avoid a tcl/python reference cycle?
You might file a bug report and see what comes of it.


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to