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

Eric Brunson brunson at brunson.com
Mon Oct 29 17:06:43 CET 2007


Dick Moores wrote:
> At 07:54 AM 10/29/2007, Eric Brunson wrote:
>   
>> Dick Moores wrote:
>>     
>>> At 05:03 AM 10/29/2007, bhaaluu wrote:
>>>
>>>       
>>>> On 10/29/07, Dick Moores <rdm at rcblue.com> wrote:
>>>>
>>>>         
>>>>> 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
>>>>> <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892>
>>>>> Dick
>>>>>
>>>>>           
>>> Thanks! I modified it slightly: 
>>> <http://www.rcblue.com/Python/toTestOnUnix.py>. Could a unix/linux 
>>> user see if it works?
>>>
>>> Dick
>>>
>>>       
>> Seems to work fine under my version of Linux and Solaris 10.
>>     
>
> Great! Thanks. Care to try another one?: 
> <http://www.rcblue.com/Python/toTestOnUnix2.py>. It uses the Cookbook 
> recipe Kent found for me 
> (<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134892>).
>   

Works fine.

> Dick
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>   



More information about the Tutor mailing list