问题
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