keyboard input

Fredrik Lundh effbot at
Wed Sep 27 17:28:13 CEST 2000

Georg Simon wrote:
> How do I make my program ask for one single keystroke ?
> ( The user is presented a menu and asked to hit a key )

char = msvc.getch() # windows only

on unix, use the curses library.


More information about the Python-list mailing list