0
点赞
收藏
分享

微信扫一扫

学习笔记 | tkinter 鼠标形状cursor属性值一览 设置鼠标悬停样式 光标形状属性设置

西曲风 2021-09-21 阅读 59

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属性值汇总,
作者整理不易,如果对你有用的话,
点个赞加个收藏和关注再走吧!

举报

相关推荐

0 条评论