Urwid:使光标不可见 [英] Urwid: make cursor invisible

查看:134
本文介绍了Urwid:使光标不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是urwid,它是Python的框架",用于在ncurses中设计终端用户界面.尽管有一件事我不能轻易通过诅咒来做-使光标不可见.就像现在一样,选择按钮时可以看到光标,而且看起来很丑陋.有办法禁用它吗?

I'm using urwid, which is a Python "framework" for designing terminal user interfaces in ncurses. There's one thing though that I'm not able to do in urwid that was easy in curses - make the cursor invisible. As it is now, the cursor is visible when selecting buttons, and it just looks plain ugly. Is there a way to disable it?

推荐答案

urwid 使用

urwid uses the curs_set function, but does not expose it as a class method anywhere. Someone could modify urwid to allow using this method; otherwise there's no reliable method of doing this.

您可以将其报告为问题.

这篇关于Urwid:使光标不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆