import pygame import sys pygame.init() display = pygame.display.set_mode((1200,1000)) display.fill((255,255,255)) pygame.draw.polygon(display, (0,0,0), [(300,300),(100,375),(100,455),(500,455),(500,375)], width=0) while 1 : for events in pygame.event.get(): if events.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()