当我编写脚本/程序时,我经常想弹出一个简单的文本“gui”来提示输入:
我该怎么做?例如,来自 Shell、Ruby、Golang 或 C。我什至不知道这叫什么,Google 也没有回应“脚本中的文本”。
(该示例来自 Debian 安装程序)。
其实,那不是dialog http://invisible-island.net/dialog/dialog.html,但是newt库(外观上有一些差异)。它由以下人员使用anaconda https://fedoraproject.org/wiki/Anaconda在红帽系统上。 Whittail 程序使用该库,但它与 anaconda 没有真正的关系。
Anaconda 主要是用 Python 编写的;它使用 Python 绑定中的 newt 共享库(用 C 语言编写)。
对于学习它......文档基本上不存在。你有源代码。
进一步阅读:
- 的屏幕截图dialog http://invisible-island.net/dialog/dialog-figures.html
- newt.git https://git.fedorahosted.org/git/newt
- anaconda.git https://github.com/rhinstaller/anaconda
-
python-newt 的任何示例/文档 http://www.thecodingforums.com/threads/any-examples-documentation-for-python-newt.718922/(newt 与文档的讨论)
- 为控制台增添乐趣和利润,第 2 部分 http://opensourceforu.efytimes.com/2011/11/spicing-up-console-for-fun-profit-2/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)