Dick Moores wrote: > At 03:44 AM 10/29/2007, Kent Johnson wrote: >> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892 > > Kent, I'm still too dumb to see how to use that. Could you show a > script using it that, say, prints 1 if '1' is pressed and 2 if '2' is?
from getch_recipe import getch print getch() Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor