how to load images on tkinter code example
Example 1: how to add a image in tkinter
from tkinter import *
root=Tk()
img=PhotoImage(file='sunshine.jpg')
Label(root,image=img).pack()
root.mainloop()
Example 2: image in tkinter
pip install pillow
from tkinter import *
root=Tk()
img=PhotoImage(file='sunshine.jpg')
Label(root,image=img).pack()
root.mainloop()
pip install pillow