我得到了这段代码,但出现了这个错误:AttributeError: 'PhotoImage' object has no attribute 'resize rgrapg = Image.open("risinggrap.jpg")
'
rgraph = ImageTk.PhotoImage(Image.open("risinggrap.jpg")) rgraph = rgraph.resize((200,250),Image.ANTIALIAS) photoLabe = Label(x, image=rgraph)```