PythonTkinter: Using custom mouse cursors under Windows?

PythonTkinter: Using custom mouse cursors under Windows?,第1张

Python/Tkinter: Using custom mouse cursors under Windows?

lbl=Label(root, text="toto", cursor="@toto.cur")
works for me on Python 2.6
and Vista. Make sure that the cur file is in the working directory of your
script (I have a similar traceback if I try to load a non-existing cursor) and
that the file is not corrupted.

As an alternative, here is a list of internal cursors:
http://www.tcl.tk/man/tcl8.4/TkCmd/cursors.htm



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5648750.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存