Si es para pygame entonces es más fácil.
Código Python:
Ver original#!/usr/bin/env python
#coding: UTF-8
import pygame
size = width, height = 640, 480
background = (0, 0, 0)
blue = (0, 0, 255)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Creando lineas")
clock = pygame.time.Clock()
finish = False
while not finish:
for event in pygame.event.get():
if event.type == pygame.QUIT:
finish = True
elif event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE:
finish = True
screen.fill(background)
pygame.draw.line(screen, blue, (100, 100), (200, 200))
pygame.display.flip()
clock.tick(30)