3

I need text-console interactive dialogs. I am porting a shell script to Python. Which Python tool would do pretty much exactly what the UNIX command dialog does? (i.e. ready-to-use yes/no, calendar, text, gauge, etc. controls which return results and are ncurses-like full-screen UIs)

3 Answers 3

5

You should look at Urwid.

Urwid provides a higher-level toolkit on top of curses and includes an event loop to handle keyboard and mouse input. It either uses it's own select-based event loop, or can hook into gevent or Twisted.

In addition to handling keyboard input efficiently you'll also have a host of options to handle user input with edit boxes, list controls and more.

Sign up to request clarification or add additional context in comments.

Comments

1

Have a look at curses. It's low-level, but has the advantage of being a part of the standard library.

Comments

-1

These are dialog Python bindings: http://pythondialog.sourceforge.net/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.