Here in this blog we are going to make a window with the image attached in it.
So this type of procedure is done by this coding which has been shown below:-
from tkinter import *
root=Tk()
root.geometry("900x450")
pici=PhotoImage(file="hit.png")
pici_label=Label(root,image=pici)
pici_label.image=pici
pici_label.pack()
root.mainloop()

Comments
Post a Comment