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

D. Hartley denise.hartley at gmail.com
Wed May 4 20:33:53 CEST 2005


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


---------- Forwarded message ----------
From: Joseph Quigley <cpu.crazy at gmail.com>
Date: May 4, 2005 8:54 AM
Subject: [Tutor] No Need to press Enter (Joseph Quigley)
To: Tutor at python.org


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

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list