import pygame, sys from pygame. locals import * pygame.init() displaysurface = pygame.display.set_mode((300, 300)) mysurface = pygame.Surface((50, 50)) mysurface.fill((0,255,0)) mysurface2 = pygame.Surface((100,50)) mysurface2.fill((0,255,0)) while True: for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() displaysurface.blit(mysurface, (50 , 50)) displaysurface.blit(mysurface2, (50 , 159)) pygame.display.update()