from tkinter import *
from PIL import ImageTk, Image
class Hancie:
def __init__(self, root):
self.root=root
self.root.title("Hancie e-Learning Studio")
self.root.geometry("500x500")
canvas = Canvas(root, width=300, height=300)
canvas.pack()
self.root.image = ImageTk.PhotoImage(Image.open("vector.png"))
canvas.create_image(10,10,anchor=NW,image=self.root.image)
if __name__=='__main__':
root=Tk()
Hancie(root)
root.mainloop()
Output