Tkinter Cursor shape on Button
Designing the shape of the mouse cursor on the Button is explained in Tkinter Widget Cursors Property has already explained the shape of the mouse cursor on the label, so you can also apply this concept to the function button, the following will be directly explained by example.
Tkinter Cursor shape on Button Example#1
The shape is star when the mouse cursor is over the function button.
from tkinter import *
cnt=1
def msgShow():
global cnt
# label["text"] = "I love Python x" + str(cnt)
# label["bg"] = "lightyellow"
# label["fg"] = "blue"
label.config(text="I love Python x" + str(cnt),
bg="lightyellow",fg="blue")
cnt += 1
root = Tk()
root.title("apidemos.com")
root.geometry("300x300")
label = Label(root)
# label["text"] = "I love Java"
myPic = PhotoImage(file="apidemos.png")
btn = Button(root,image=myPic,command=msgShow,
cursor="star")
label.pack()
btn.pack()
root.mainloop()
Output: