Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame, sys,os
- from pygame.locals import *
- pygame.init()
- window = pygame.display.set_mode((800, 600))
- pygame.display.set_caption('Bas')
- screen = pygame.display.get_surface()
- pygame.display.flip()
- def input(events):
- for event in events:
- if event.type == QUIT:
- pygame.quit()
- sys.exit(0)
- pygame.quit()
- else:
- print event
- while True:
- input(pygame.event.get())
- pygame.quit()
Add Comment
Please, Sign In to add comment