PhotoImage does not recognize PNG image - Keep getting following error: _tkinter.TclError: couldn't recognize data in image file “MyImage.png”

后端 未结 0 430
逝去的感伤
逝去的感伤 2021-01-22 00:37

I\'m currently learning Tkinter, and I wanted to add a PNG image to my Tkinter Canvas object. The code is shown below.

window = Tk()
window.title(\'My Title\')

c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题