1from tkinter import *
2root=Tk()
3img=PhotoImage(file='sunshine.jpg')
4Label(root,image=img).pack()
5root.mainloop()
1import tkinter
2from PIL import Image, ImageTk
3
4load= Image.open("/Users/omprakash/Desktop/Gmail-new-logo.jpg")
5render = ImageTk.PhotoImage(load)
6img = Label(root, image=render)
7img.place(x=100, y=100)
8
1from tkinter import *
2root = Tk()
3canvas = Canvas(root, width = 300, height = 300)
4canvas.pack()
5img = PhotoImage(file="ball.ppm")
6canvas.create_image(20,20, anchor=NW, image=img)
7mainloop()