0

I want to see the image on the frame but my image is not loading on the frame.

import tkinter as tk
from PIL import Image, ImageTk
class StartPage(tk.Frame):
    def __init__(self,master):
        tk.Frame.__init__(self,master)
        tk.Label(self,text="",width=30,height=20,bg="#5CDB95",font=
        ("Vineta BT",20,"bold","italic","underline")).pack(side=TOP)
        self.img  = Image.open("down.png") 
        self.img = img.resize((800, 200), Image.ANTIALIAS) 
        photo=ImageTk.PhotoImage(img)
        self.lab=Label(image=photo)
        self.lab.place(relx=0.2,rely=0.3)
FrainBr33z3
  • 1,085
  • 1
  • 6
  • 12

0 Answers0