Python tkinter 鼠标形状cursor属性值
属性 | 效果 | 属性 | 效果 |
---|---|---|---|
arrow | pirate | ||
circle | plus | ||
clock | shuttle | ||
cross | sizing | ||
dotbox | spider | ||
exchange | spraycan | ||
fleur | star | ||
hand2 | target | ||
heart | tcross | ||
man | trek | ||
mouse | watch |
附:cursor图形实时展示器:
#tkinter cursor值展示
import tkinter as tk
root = tk.Tk(className='cursor值')
for i in ['arrow','circle','clock','cross','dotbox',
'exchange','fleur','hand2','heart','man','mouse',
'pirate','plus','shuttle','sizing','spider',
'spraycan','star','target','tcross','trek','watch']:
tk.Label(root,text=i,cursor=i,relief='solid').pack(side='top',fill='x')
root.mainloop()
效果:
[图片上传失败...(image-e33af1-1627292716556)]
以上就是Python中tkinter的鼠标形状cursor属性值汇总,
作者整理不易,如果对你有用的话,
点个赞加个收藏和关注再走吧!