import pygame, sys pygame.init() clock = pygame.time.Clock() screen_width = 920 screen_height = 500 screen = pygame.display.set_mode((screen_width,screen_height)) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.flip() clock.tick(60)