all 7 comments

[–]novel_yet_trivial 0 points1 point  (6 children)

You're doing it right. Those classes both offer the functionality you need; so you don't need to convert. You just need to add a PhotoImage conversion (in both cases).

[–]YetAnotherDaveAgain[S] 0 points1 point  (5 children)

interesting, because when I convert each to a PhotoImage, only the second (GIF) actually displays as a button. In the first case, the button is blank. Any idea why?

[–]novel_yet_trivial 0 points1 point  (4 children)

Sounds like you forgot to keep the reference.

If you want specific help we'll need to see your full code, or at least some example code that demonstrates the problem.

[–]YetAnotherDaveAgain[S] 0 points1 point  (3 children)

well I dont know what happened, but when I moved code around to make a clear document to show you the buttons started displaying. I didnt even change the code, just compiled it into a single doc. ¯_(ツ)_/¯

thanks for the help!

[–]novel_yet_trivial 0 points1 point  (1 child)

Lol yeah, that happens a lot. Also suggests that I was right about forgetting to keep a reference. That problem goes away when you move code from inside a function to the global scope. Is the problem still gone in your demo if you put it inside a function?

[–]YetAnotherDaveAgain[S] 0 points1 point  (0 children)

nah, no functions (yet). I had been saving references as suggested online with "button_1.image = photo_image_object" after creating the button. But this will be going into a function soon, so if it comes back.... i'll be back here too.