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