SHARE
TWEET

Untitled

a guest Jul 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pygame,sys
  2.  
  3. pygame.init()
  4. screen = pygame.display.set_mode((600,400))
  5. pygame.display.set_caption("pygame")
  6. while True:
  7.     for ev in pygame.event.get():
  8.         print(pygame.QUIT)
  9.         if ev.EventType == pygame.QUIT:
  10.             sys.exit(0)
  11.     pygame.display.update()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top