GUI-Tkinter
窗口固定位置载入图片
from tkinter import *
import tkinter
from PIL import Image, ImageTk
top = tkinter.Tk()
top.title = 'new'
top.geometry("800x600")
top.resizable(width=True, height=True)
def showImg():
load = Image.open("C:\\Users\\Elinker Electric 001\\Desktop\\test\\test.jpg")
render = ImageTk.PhotoImage(load)
img = tkinter.Label(image=render)
img.image = render
img.place(x=70, y=50)
submit_button = tkinter.Button(top, text="显示图片", command=lambda: showImg()).place(x=350,y=550)
top.mainloop()