# importing only those functions
# which are needed
from tkinter import *
from tkinter.ttk import *
# creating tkinter window
root = Tk()
# Creating a photoimage object to use image
photo = PhotoImage(file = r"C:\Gfg\circle.png")
# 调整图片尺寸适应按钮大小
photoimage = photo.subsample(3, 3)
# 图片在button的左边
Button(root, text = '点我 !', image = photoimage,
compound = LEFT).pack(side = TOP)
mainloop()