Question:
Once again, solving(hopefully) one problem begat another. I was in the process of resolving an issue with tkinter.PhotoImage, and upon finding a solution(I think) I ran into this error:
TypeError: str returned non-string (type Frame)
Anyone able to diagnose my issue? can’t figure out where this is coming from even(though supposedly in the middle line of my code snippet(according to the error)).
Repl link:
https://replit.com/@ThomasWarenski/SDEV-140-Final-Project#main.py
Code Snippet:
sceneryImage = tk.PhotoImage(playFrame, file = themeDictionary["Test Theme"][0][0])
scenery = tk.Label(playFrame, image = sceneryImage, text = themeDictionary["Test Theme"][0][1], compound = "bottom")
scenery.grid(column = 3, row = 0, stick = "NSEW")
Thank you