All that shows up is a little black screen that is the size of the photo but no image is loaded. What am I doing wrong here? The photo is in the same directory as the python script.
I have also tried a JPEG photo but no luck..
from Tkinter import * import Image, ImageTk class App(): def __init__(self, master): frame = Frame(master) frame.pack() image = Image.open("pinger2.gif") photo = ImageTk.PhotoImage(image) self.logo = Label(root, image = photo) self.logo.photo = image #this re references the image self.logo.pack() root = Tk() app = App(root) root.mainloop()