Search code examples
pythoninteractivecurses

How to make interactive Python script with keyboard arrows navigation in menu


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!


Solution

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

    There are alternatives like Urwid and Pycdk