服用鼠标输入诅咒

发布于 2025-01-24 17:32:01 字数 136 浏览 2 评论 0原文

谁能告诉我如何服用鼠标输入 - python诅咒? 如果有什么方法可以在运行程序时为终端内部的鼠标创建一个自定义光标?

curses.set_curs_char('*')

或以这种方式的东西。

Can anyone tell me how to take mouse input în Python curses?
And if there is any way that I can create a custom cursor for the mouse inside the terminal when I run the program?

curses.set_curs_char('*')

Or something in this manner.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

似梦非梦 2025-01-31 17:32:01

尝试查看以下代码以

begin_x = 20 ; begin_y = 7
height = 5 ; width = 40
win = curses.newwin(height, width, begin_y, begin_x)

获取更多信息: htttps:https://docspy3zh.readocs .io/en/最新/howto/curses.html

Try to take a look with following code

begin_x = 20 ; begin_y = 7
height = 5 ; width = 40
win = curses.newwin(height, width, begin_y, begin_x)

For more : https://docspy3zh.readthedocs.io/en/latest/howto/curses.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文