Skip to main content
 首页 » 编程设计

python之将菜单添加到 curses python 程序

2025年05月04日8sxdcgaq8080

我正在使用 python 和 curses 编写一个文本 UI 程序,并试图将菜单添加到显示中,但我找不到任何关于在 python 中为 curses 添加菜单的文档。关于如何完成此操作的任何指示?

请您参考如下方法:

curses 的 Python 库 does not seem to support可用于 n-curses 的菜单扩展。但是,如果您可以使用 Python2(最有可能),您可以尝试 patch可在此处获取。