tkinter Adding Images To Label/Button File Formats Supported By Tkinter


Tkinter support .ppm files from PIL(Python Imaging Library), .JPG, .PNG and .GIF.

To import and image you first need to create a reference like so:

Image = PhotoImage(filename = [Your Image here])

Now, we can add this image to Button and Labels like so using the "img" callback:

 Lbl = Label (width=490, img=image)