import pygame, time pygame.init() # The next line sets a screen going from 0 to 600 in each direction screen = pygame.display.set_mode([601,601]) # This colors the background black screen.fill([0,0,0]) pygame.display.flip() pygame.draw.line(screen, [100,100,255], [0,0], [600,600],3) pygame.display.flip() raw_input("Press ENTER to close the graphics window") pygame.quit()