my code displays AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo' when i run it

后端 未结 0 1902
滥情空心
滥情空心 2021-01-31 23:58
from tkinter import *
from PIL import ImageTk, Image

my_image1 = ImageTk.PhotoImage(Image.open(\'melody1.png\'))

my_image2 = ImageTk.PhotoImage(Image.open(\'melody.png         


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