Handling keyboard events in python

前端 未结 4 1753
忘掉有多难
忘掉有多难 2021-01-27 23:01

How can I handle keyboard events in python? More exactly I need to manage keyboard arrows and some other keys for my command-line application. Is there a module for this or I ne

4条回答
  •  失恋的感觉
    2021-01-27 23:45

    I found another interesting module that's straightforward to use and I'll use it! The module is readline and you just need to import it to have a bash shell (handle keyboard, history-list, etc) "simulation". It's for *nix systems. I'm at beginning with python language and I don't know all modules yet. readline

提交回复
热议问题