import cairo
from cairo import PSSurface
import math

def draw_eps(filename):
    
    surface = PSSurface(filename, 320, 240)
    surface.set_eps(True)
    c = cairo.Context(surface)

    c.set_source_rgb(1, 1, 1)
    c.paint()

    c.arc(100, 80, 50, 0, 2*math.pi)
    c.set_source_rgba(1,0,0,1)
    c.fill()
    
    surface.show_page()
