Re: [Tutor] No Need To Press Enter

2005-05-10 Thread Joseph Quigley
Darn! I get this error: Traceback (most recent call last): File "C:/Python24/saved/tmp1.py", line 1, in -toplevel- if event.key == K_q: NameError: name 'event' is not defined Do I need to import something? @ Denise: I would like to the full code if you don't mind. Date: Wed, 4

Re: [Tutor] No Need to Press Enter

2005-05-09 Thread Alan Gauld
> yes. That's exactly what I was looking for. Do you know the code for > the ^Q ^Z (control + letter keys) to quit? Like ^Z to quit the Python shell? Be careful with that one. The ^Z only works on Windows. On Linux or MacOS its ^D. In both cases its the end of file character used by the operat

Re: [Tutor] No Need to Press Enter

2005-05-09 Thread Joseph Quigley
yes. That's exactly what I was looking for. Do you know the code for the ^Q  ^Z (control + letter keys) to quit? Like  ^Z to quit the Python shell? At 06:03 PM 5/4/2005, you wrote: Message: 8 Date: Wed, 4 May 2005 11:33:53 -0700 From: "D. Hartley" <[EMAIL PROTECTED]> Subject: [Tutor] Fwd:  No Ne

Re: [Tutor] No Need to press Enter

2005-05-04 Thread Chris Smith
> From: Joseph Quigley > What is the secret to have the user press the "Q" key, and the program > exits without pressing the "Enter" key? > Or the "Control" and "Q" keys to exit? > For the Macintosh, would the same command/s for "Control Q" keys be the > same as the "Apple Q" key? > I see that Di

[Tutor] No Need to press Enter (Joseph Quigley)

2005-05-04 Thread Joseph Quigley
What is the secret to have the user press the "Q" key, and the program exits without pressing the "Enter" key? Or the "Control" and "Q" keys to exit? For the Macintosh, would the same command/s for "Control Q" keys be the same as the "Apple Q" key? Thanks, JQ ___