Add image to button : Image « Tkinker « Python Tutorial






from Tkinter import *

win = Tk()
igm = PhotoImage(file="a.gif")
Button(win, image=igm).pack()
win.mainloop()








18.15.Image
18.15.1.Add image to button
18.15.2.Add image to Canvas