Python interactive CLI application?

删除回忆录丶 提交于 2019-11-27 03:55:18

问题


I'm not even sure what these would be called? I used to write them in ADA running on VAX-VMS!

I want to make a simple menu-driven application that would let me display menus and use the cursor keys to navigate around them, choose items and navigate around the app. All fully old school text based.

I want to be able to take over the whole terminal window and display stuff in different places.

Is this possible in Python?


回答1:


Check out the Python HOWTO on Curses Programming with Python and here is the library reference.




回答2:


Another easy to use library is Urwid - Console User Interface Library.

http://excess.org/urwid/

http://excess.org/urwid/examples.html




回答3:


Yes, have a look at the different curses implementations.



来源:https://stackoverflow.com/questions/10873157/python-interactive-cli-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!