import pygame import sys pygame.init() display = pygame.display.set_mode((300, 300)) display.fill((255, 255, 255)) pygame.draw.line(display, (0, 0, 255), (20,20), (200, 180), width=2) # draw a line from point A to while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update()