"mo" <[EMAIL PROTECTED]> wrote: > Can somebody explain how to stop a WHILE loop in running program by pressing > ESC key?
depends on the platform. on windows, you can use the mscvrt module: import msvcrt while ...: ... if msvcrt.kbhit() and msvcrt.getch() == chr(27): break ... also see the second example on this page: http://effbot.org/tag/python.msvcrt </F> -- http://mail.python.org/mailman/listinfo/python-list