It MAY be able to display an actual image though; I've been contemplating doing that for a while now, if possible.
image = "/usr/share/icons/blender.png" #replace with path surface = cairo.ImageSurface.create_from_png(image) pattern = cairo.SurfacePattern(surface) matrix = cairo.Matrix(x0=-x, y0=-y) #where (x,y) is the #upper-left coordinates #of the image pattern.set_matrix(matrix) cr.set_source(pattern) #replace cr with the name #of the cairo context