Código
import pygame,sys from pygame.locals import * pygame.init() venta = pygame.display.set_mode((400,300)) pygame.display.set_caption("Juego Beta") while True: for envento in pygame.event.get(): if venta.type == QUIT: pygame.quit() sys.exit() pygame.display.update