Button Cursor in Python tkinter
Cursor is treated as indicator. There are 20 Cursor available in tkinter.
"arrow","circle","clock","cross","dotbox","exchange","fleur","heart","heart","man","mouse","pirate","plus","shuttle","sizing","spider","spraycan","star","target","tcross","trek","watch"
******Your code Below*****
from tkinter import *
root = Tk()
root.title("Button Cursor")
root.geometry("800x600+450+86")
btn1= Button(root, text="Arrow",font=("Times", 20, "bold"),cursor="arrow")
btn2= Button(root, text="boat",font=("Times", 20, "bold"),cursor="boat")
btn3= Button(root, text="bogosity",font=("Times", 20, "bold"),cursor="bogosity")
btn4= Button(root, text="bottom_left_corner",font=("Times", 20, "bold"),cursor="bottom_left_corner")
btn5= Button(root, text="bottom_right_corner",font=("Times", 20, "bold"), cursor="bottom_right_corner")
btn6= Button(root, text="box_spiral",font=("Times", 20, "bold"),cursor="box_spiral")
btn7= Button(root, text="PENCIL",font=("Times", 20, "bold"),cursor="pencil")root.mainloop()
btn1.pack(pady=2)
btn2.pack(pady=2)
btn3.pack(pady=2)
btn4.pack(pady=2)
btn5.pack(pady=2)
btn6.pack(pady=2)
btn7.pack(pady=2)
********End Code**********
Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.
Enjoy..............
If You Want To Learn More Plz Visit www.newpost24.com
If You Find Specific link plz Follow This Page.
إرسال تعليق