tkinter cursor

import tkinter as tk

def cursorlabel(winobj, cursor, column, row):
	tk.Label(winobj, text = cursor, cursor = cursor).grid(column = column, row = row)

cursor = tk.Tk()
cursor.title('Cursor')
cursorlabel(cursor, 'arrow', 0, 0)
cursorlabel(cursor, 'man', 0, 1)
cursorlabel(cursor, 'based_arrow_down', 0, 2)
cursorlabel(cursor, 'middlebutton', 0, 3)
cursorlabel(cursor, 'based_arrow_up', 0, 4)
cursorlabel(cursor, 'mouse', 0, 5)
cursorlabel(cursor, 'boat', 0, 6)
cursorlabel(cursor, 'pencil', 0, 7)
cursorlabel(cursor, 'bogosity', 0, 8)
cursorlabel(cursor, 'pirate', 0, 9)
cursorlabel(cursor, 'bottom_left_corner', 0, 10)
cursorlabel(cursor, 'plus', 0, 11)
cursorlabel(cursor, 'bottom_right_corner', 0, 12)
cursorlabel(cursor, 'question_arrow', 0, 13)
cursorlabel(cursor, 'bottom_side', 0, 14)
cursorlabel(cursor, 'right_ptr', 0, 15)
cursorlabel(cursor, 'bottom_tee', 1, 0)
cursorlabel(cursor, 'right_side', 1, 1)
cursorlabel(cursor, 'box_spiral', 1, 2)
cursorlabel(cursor, 'right_tee', 1, 3)
cursorlabel(cursor, 'center_ptr', 1, 4)
cursorlabel(cursor, 'rightbutton', 1, 5)
cursorlabel(cursor, 'circle', 1, 6)
cursorlabel(cursor, 'rtl_logo', 1, 7)
cursorlabel(cursor, 'clock', 1, 8)
cursorlabel(cursor, 'sailboat', 1, 9)
cursorlabel(cursor, 'coffee_mug', 1, 10)
cursorlabel(cursor, 'sb_down_arrow', 1, 11)
cursorlabel(cursor, 'cross', 1, 12)
cursorlabel(cursor, 'sb_h_double_arrow', 1, 13)
cursorlabel(cursor, 'cross_reverse', 1, 14)
cursorlabel(cursor, 'sb_left_arrow' , 1, 15)
cursorlabel(cursor, 'crosshair', 2, 0)
cursorlabel(cursor, 'sb_right_arrow', 2, 1)
cursorlabel(cursor, 'diamond_cross', 2, 2)
cursorlabel(cursor, 'sb_up_arrow', 2, 3)
cursorlabel(cursor, 'dot', 2, 4)
cursorlabel(cursor, 'sb_v_double_arrow', 2, 5)
cursorlabel(cursor, 'dotbox', 2, 6)
cursorlabel(cursor, 'shuttle', 2, 7)
cursorlabel(cursor, 'double_arrow', 2, 8)
cursorlabel(cursor, 'sizing', 2, 9)
cursorlabel(cursor, 'draft_large', 2, 10)
cursorlabel(cursor, 'spider', 2, 11)
cursorlabel(cursor, 'draft_small', 2, 12)
cursorlabel(cursor, 'spraycan', 2, 13)
cursorlabel(cursor, 'draped_box', 2, 14)
cursorlabel(cursor, 'star', 2, 15)
cursorlabel(cursor, 'exchange', 3, 0)
cursorlabel(cursor, 'target', 3, 1)
cursorlabel(cursor, 'fleur', 3, 2)
cursorlabel(cursor, 'tcross', 3, 3)
cursorlabel(cursor, 'gobbler', 3, 4)
cursorlabel(cursor, 'top_left_arrow', 3, 5)
cursorlabel(cursor, 'gumby', 3, 6)
cursorlabel(cursor, 'top_left_corner', 3, 7)
cursorlabel(cursor, 'hand1', 3, 8)
cursorlabel(cursor, 'top_right_corner', 3, 9)
cursorlabel(cursor, 'hand2', 3, 10)
cursorlabel(cursor, 'top_side', 3, 11)
cursorlabel(cursor, 'heart', 3, 12)
cursorlabel(cursor, 'top_tee', 3, 13)
cursorlabel(cursor, 'icon', 3, 14)
cursorlabel(cursor, 'trek', 3, 15)
cursorlabel(cursor, 'iron_cross', 4, 0)
cursorlabel(cursor, 'ul_angle', 4, 1)
cursorlabel(cursor, 'left_ptr', 4, 2)
cursorlabel(cursor, 'umbrella', 4, 3)
cursorlabel(cursor, 'left_side', 4, 4)
cursorlabel(cursor, 'ur_angle', 4, 5)
cursorlabel(cursor, 'left_tee', 4, 6)
cursorlabel(cursor, 'watch', 4, 7)
cursorlabel(cursor, 'leftbutton', 4, 8)
cursorlabel(cursor, 'xterm', 4, 9)
cursorlabel(cursor, 'll_angle', 4, 10)
cursorlabel(cursor, 'X_cursor', 4, 11)
cursorlabel(cursor, 'lr_angle', 4, 12)
cursor.mainloop()

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值