How to make a scrolling menu in python-curses

前端 未结 4 617
走了就别回头了
走了就别回头了 2020-12-06 07:29

There is a way to make a scrolling menu in python-curses? I have a list of records that I got from a query in sqlite3 and I have to show them in a box but they are more than

4条回答
  •  余生分开走
    2020-12-06 07:56

    To make a scrollable widget that can scroll through text that is larger than a screenful you will need to use curses.newpad

    You can find a simple example here: https://stackoverflow.com/a/2523020/9205341
    And the Python 3/Python 2 docs there.

提交回复
热议问题