Windows XP Pro, Python 2.5.1

import msvcrt
while True:
     if msvcrt.kbhit():
         key = msvcrt.getch()
         if key == 'Enter'
         do something

Is there a way to catch the pressing of the 'Enter' key?

Thanks,

Dick Moores

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to