Advertisement
jabela

10 wait until a key is pressed

Dec 20th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. def wait():
  2.     while (pygame.event.wait().type != pygame.KEYDOWN): pass
  3.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement