from tkinter import *
from PIL import Image, ImageTk
gui = Tk()
gui.geometry("200x200") # height and width
image = Image.open("mball.png")
photo = ImageTk.PhotoImage(image)
label = Label(image = photo)
label.pack()
label.place(x=50,y=50) # position of image
gui.mainloop()
Comments
Post a Comment