Tkinter: Why Label doesn't display image? Bug with Garbage Collector in PhotoImage.
Sometimes image can disappear when you move code into function.
It is common problem with bug in PhotoImage
with garbage collector
which removes image from memory when image is assigned to local variable (variable created in function). You have to assign image to global
variable or to some object - ie …