Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement