1.在tkinter的UI控件中,设置鼠标形状效果是通过控件的属性cursor值进行修改的。
如:
tkinter.Button(root,text='cursor_style',cursor='circle').pack()
可以在创建控件时设置,也可以通过configure方法设置。
2.鼠标形状:
3.常用的值如上图:
arrow circle clock cross dotbox exchange fleur
heart man mouse pirate plus shuttle sizing
spider spraycan star target tcross trek watch
xterm