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 Curson Using for loop")
root.geometry("800x600+450+86")

List = ["arrow","based_arrow_down","based_arrow_up","boat","bogosity",

           "bottom_left_corner",'bottom_right_corner',"bottom_side","bottom_tee",

           "box_spiral","center_ptr"]

for L in List:

Button(root, cursor=L,font=("Times", 20, "bold"),).pack(pady=5)

root.mainloop()

********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.

Post a Comment

Previous Post Next Post