import pygame, sys #general setup pygame.init() clock = pygame.time.Clock() #create the display surface screen = pygame.display.set_mode((800,800)) second_surface = pygame.surface([100,200]) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() screen.fill((255,255,255)) pygame.display.flip() clock.tick(60)