keyboard input

Fredrik Lundh effbot at telia.com
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.

</F>




More information about the Python-list mailing list