Answers for "cursor option in button tkinter pictures"

1

how to change cursor on hover of button in tkinter

import tkinter as tk

root = tk.Tk()

# cursor="hand1" or cursor="hand2"
tk.Button(root, text="Start", cursor="hand2")

root.mainloop()
Posted by: Guest on January-03-2021
0

python tkinter cursor types

from Tkinter import *
import Tkinter

top = Tkinter.Tk()

B1 = Tkinter.Button(top, text ="circle", relief=RAISED,
                         cursor="circle")
B2 = Tkinter.Button(top, text ="plus", relief=RAISED,
                         cursor="plus")
B1.pack()
B2.pack()
top.mainloop()
Posted by: Guest on January-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language