1from tkinter import *
2
3root = Tk()
4
5button = Button(root, text="Click me!")
6img = PhotoImage(file="C:/path to image/example.gif") # make sure to add "/" not "\"
7button.config(image=img)
8button.pack() # Displaying the button
9
10root.mainloop()