Re: [Tutor] Problem with msvcrt

2007-11-01 Thread Ricardo Aráoz
Alan Gauld wrote: > "Ricardo Aráoz" <[EMAIL PROTECTED]> wrote > >> if msvcrt.kbhit() : >> key = msvcrt.getch() >> if key == 'h' : >> print 'Hello' >> >> This is XP with 2.5 in Idle. Any ideas? > > IDLE is a GUI app running under Tkinters event loop. > I doubt if msvcrt works under Tkinter. > Try

Re: [Tutor] Problem with msvcrt

2007-11-01 Thread Alan Gauld
"Ricardo Aráoz" <[EMAIL PROTECTED]> wrote > if msvcrt.kbhit() : > key = msvcrt.getch() > if key == 'h' : > print 'Hello' > > This is XP with 2.5 in Idle. Any ideas? IDLE is a GUI app running under Tkinters event loop. I doubt if msvcrt works under Tkinter. Try running your code in a DOS box. Any

[Tutor] Problem with msvcrt

2007-10-31 Thread Ricardo Aráoz
Hi, was just checking msvcrt module, tried a sample script : >>> import time >>> import msvcrt >>> while True : if msvcrt.kbhit() : key = msvcrt.getch() if key == 'h' : print 'Hello' if key == 'b' :