Wait for a keypress before continuing?
timr at probo.com
Tue Aug 16 23:50:13 CEST 2011
John Doe <jdoe at usenetlove.invalid> wrote:
> while not (char==chr(27) or char==chr(110)):
> if char==0:
>That freezes the process.
That exact code works perfectly for me. The function returns as soon as I
press the escape key. You are running this from a console process, and not
a GUI process, right?
>That means char=msvcrt.getch() is getting something?
Did you ever think about inserting a debug statement to help you?
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list