import pygame, sys from pygame.locals import * pygame.init() screen = pygame.display.set_mode((1000,800)) surface = pygame.Surface((400,400)) surface.fill((255,255,255)) while True : events = pygame.event.get() for event in events : if event.type == pygame.QUIT : pygame.quit() sys.exit() screen.blit(surface, (200,200)) pygame.display.update()