[Tutor] Looking for suggestions for improving chessTimer.py code

Dick Moores rdm at rcblue.com
Mon Oct 29 12:32:30 CET 2007

At 04:08 AM 10/29/2007, 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?

Seems I should clarify that. I'm not looking for a script that echoes 
the key pressed. So I'll change that last line to "Could you show a
script using it that, say, prints "Hello" if  '1' is pressed and 
"Bye" if '2' is, AND uses 


More information about the Tutor mailing list