Frage

I would like to create interactive Python script (probably using curses?) with menu where user can navigate over menu using keyboard arrows. What is the easiest way to implement such functionality? Any simple usage/tutorial? Thank You!

War es hilfreich?

Lösung

take a look at Python curses module and for example ncurses-ui-python.

There are alternatives like Urwid and Pycdk

Andere Tipps

You might wanto to take a look also at snack (newt-based library)

You might also want to check out Unicurses, which wraps python's native curses module in linux and pdcurses in Windows.

Unicurses has the benefit of maintaining a style of usage which is consistent with nCurses and PDCurses. Therefore, tutorials such as this one will be more helpful if you're wrapping puthon curses with unicurses.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top