Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Richard D. Moores
On Tue, Jul 27, 2010 at 07:51, Nick Raptis wrote: > On 07/27/2010 05:22 PM, Richard D. Moores wrote: > >> Python 3.1 on Vista. >> >> Please see . >> >> I'm trying to recall what I used to know, thus this simple script. But 'y' >> or 'q' do nothing. What's wr

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Richard D. Moores
On Tue, Jul 27, 2010 at 09:09, Alan Gauld wrote: > > "Richard D. Moores" wrote > > > Please see . >> >> I'm trying to recall what I used to know, thus this simple script. But 'y' >> or 'q' do nothing. What's wrong? >> > > I don't think you need kbhit() I

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Alan Gauld
"Richard D. Moores" wrote Please see . I'm trying to recall what I used to know, thus this simple script. But 'y' or 'q' do nothing. What's wrong? I don't think you need kbhit() or the sleep(.1) The if kbhit test will only pass if the key is actually

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Richard D. Moores
On Tue, Jul 27, 2010 at 07:51, Nick Raptis wrote: > On 07/27/2010 05:22 PM, Richard D. Moores wrote: > >> Python 3.1 on Vista. >> >> Please see . >> >> I'm trying to recall what I used to know, thus this simple script. But 'y' >> or 'q' do nothing. What's wr

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Richard D. Moores
On Tue, Jul 27, 2010 at 07:36, Tim Golden wrote: > On 27/07/2010 15:22, Richard D. Moores wrote: > >> Python 3.1 on Vista. >> >> Please see. >> >> I'm trying to recall what I used to know, thus this simple script. But 'y' >> or 'q' do nothing. What's wrong?

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Nick Raptis
On 07/27/2010 05:22 PM, Richard D. Moores wrote: Python 3.1 on Vista. Please see . I'm trying to recall what I used to know, thus this simple script. But 'y' or 'q' do nothing. What's wrong? Thanks, Dick Moores Hi Dick! I'm not on Windows here so

Re: [Tutor] need help with msvcrt.getch()

2010-07-27 Thread Tim Golden
On 27/07/2010 15:22, Richard D. Moores wrote: Python 3.1 on Vista. Please see. I'm trying to recall what I used to know, thus this simple script. But 'y' or 'q' do nothing. What's wrong? msvcrt.getch returns bytes on Python 3.1; you're comparing against

[Tutor] need help with msvcrt.getch()

2010-07-27 Thread Richard D. Moores
Python 3.1 on Vista. Please see . I'm trying to recall what I used to know, thus this simple script. But 'y' or 'q' do nothing. What's wrong? Thanks, Dick Moores ___ Tutor maillist - Tutor@python.org To unsubsc