Tkinter PhotoImage Question

A

Adonis

I have two classes one class inherits dict(), this class just takes in a
path argument much like glob.glob() and loads the image using PhotoImage
into itself, no biggie works fine. The other class inherits Frame and it
implements an add(self, **kw) method passes all of its arguments to a
Button. My question is that when I load the images with the first class
and then use dict.get(name) as the image argument for the add method the
image does not show up, mind you the variable holding the dict is seen
by the whole class so its not a garbage collection issue, but if I put a
command in the argument list it works just fine?

Any help is greatly appreciated.

Adonis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top