图片未显示在我的Tkinter窗口中

时间:2019-04-12 16:45:45

标签: python python-3.x user-interface tkinter python-imaging-library

const event = {
        "conferenceData": {
            "createRequest": {
                "requestId": "someRandomKey",
                "conferenceSolutionKey": {
                    "type": "hangoutsMeet"
                }
            }
        }
    };

应该发生什么是我的GUI窗口中显示的图像,但是由于某种原因,我得到了

from tkinter import *
from PIL import Image

root = Tk()

im = Image.open("Image1.png")
load = Label(root, image=im)
load.pack()

root.mainloop()

出什么问题了?

0 个答案:

没有答案