#Inserting an image file into gui window.
from tkinter import *
from PIL import Image, ImageTk
rakshit = Tk()
rakshit.title("Rakshit")
rakshit.geometry("920x680")
rakshit.minsize(480,320)
rakshit.maxsize(1080,720)
image = Image.open("Path_of_your_image_file")
photo = ImageTk.PhotoImage(image)
image_label = Label(image=photo)
image_label.pack()
Comments
Post a Comment
If you've any doubts, please let me text