[Tutor] How to use getch()?

Kent Johnson kent37 at tds.net
Sun Aug 27 18:51:35 CEST 2006


Dick Moores wrote:
> I'm trying to figure out how to change what a script does while it is 
> running, by pressing a key, such as "k". Can getch() be used for 
> this? 
Google 'python getch' or see this recipe by our very own Danny Yoo:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892

Kent



More information about the Tutor mailing list