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