image label tkinter code example
Example 1: image in tkinter
from tkinter import *
from PIL import ImageTk, Image
root = Tk()
c = Canvas(root, width=500, height=500)
c.pack()
img = ImageTk.PhotoImage(Image.open(r"imagepath\imagename.extension"))
c.create_image(x, y, image=img, anchor=NW)
Example 2: image in tkinter
pip install pillow
Example 3: how to create a label in tkinter
from tkinter import *
new_window = Tk()
new_window.title("My Python Project")
new_window.geometry("300x250")
Label(new_window, text = "Hello World").pack()