stopping a while True: with the keyboard

patrick puredata at 11h11.com
Tue Sep 25 22:58:12 EDT 2007


i don't want to quit my program only get out from a while True:
also i want to use only 1 key like s.

pat



Benjamin wrote:
> On Sep 25, 8:19 pm, patrick <pured... at 11h11.com> wrote:
>   
>> hi all,
>>
>> i am looking for a way to break a while True: when pressing "s" on my
>> keyboard. how can i do this?
>>
>> pat
>>     
>
> Ctrl-C
>
>   



More information about the Python-list mailing list