import pygame import sys pygame.init() display = pygame.display.set_mode((300, 300)) display.fill((255, 255, 255)) pygame.draw.polygon(display, (0, 0, 255), [(120,120), (40,160), (40,160), (40,220), (200, 220), (200,160)], width=0) while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()