# -*- coding: cp1252 -*- # Visar hur man kan använda PhotoImage för att # få upp en bild i Tkinter # OBS! En bildfil (här "herrK.gif") måste # finnas tillgänglig. from Tkinter import * roten = Tk() photo = PhotoImage(file="herrK.gif") label = Label(roten,image=photo) label.image = photo label.pack() roten.mainloop()