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
> 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
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
> 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
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
___