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 Need to press Enter (Joseph Quigley)
To: Python tutor <tutor@python.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

I don't know if this is what you're looking for, but in my game I set
Running = 1, and then had:
                if event.key == K_q:
                    running = 0

... which exits the game as soon as you hit q (i.e., no hitting
enter). I can send the full code if it would be more helpful, if this
is what you're talking about?
~Denise
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to