Python tkinter 鼠標形狀cursor屬性值
屬性 | 效果 | 屬性 | 效果 |
---|---|---|---|
arrow | arrow
|
pirate | pirate
|
circle | circle
|
plus | plus
|
clock | clock
|
shuttle | shauttle
|
cross | cross
|
sizing | sizing
|
dotbox | dotbox
|
spider | spider
|
exchange | exchange
|
spraycan | spraycan
|
fleur | fleur
|
star | star
|
hand2 | hand2
|
target | target
|
heart | heart
|
tcross | tcross
|
man | man
|
trek | trek
|
mouse | mouse
|
watch | 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屬性值匯總斑举,
作者整理不易,如果對你有用的話,
點個贊加個收藏和關(guān)注再走吧!
CSDN同名搜 H_612,看更多Python文章
CSDN博客:https://blog.csdn.net/weixin_52132159