How to make interactive Python script with keyboard arrows navigation in menu
-
28-10-2019 - |
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!
Lösung
take a look at Python curses module and for example ncurses-ui-python.
Andere Tipps
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