Answer
To create a button that displays an image, you can use the PhotoImage class from Tkinter and set the image option of a button widget to the instance of PhotoImage. Here's an example:
import tkinter as tk
root = tk.Tk()
image = tk.PhotoImage(file="c:\\pybook\\image\\canada.gif")
button = tk.Button(root, image=image)
button.pack()
root.mainloop()
Work Step by Step
This code creates a Tk object that represents the main window, creates an instance of PhotoImage with the specified file path, and creates a button widget that displays the image. Finally, the button widget is packed into the main window using the pack geometry manager.