tkinter.PhotoImage


Definition
Widget which can display colored images in GIF, PPM/PGM format.

Syntax
tkinter.PhotoImage
PhotoImage()

Options
Photoimage (data, format, file, gamma, height, palette,  width.)

Examples

 from tkinter import*

master=Tk()

photo=PhotoImage(file="pythonlake.gif")

label=Label(master, image=photo, width=400, height=400)
label.pack(side=TOP)

b1=Button(master, text=" +" )
b1.pack(side=BOTTOM)

b2=Button(master, text=" - ")
b2.pack(side=TOP)

master.mainloop()







tkinter


Comments