th(15)
# Draw out the triangle using absolute coordinates
ctx.move_to(200, 100)
ctx.line_to(300, 300)
ctx.rel_line_to(-200, 0)
ctx.close_path()
# Apply the ink
ctx.stroke()
surface.write_to_png("test.png")
--
AngelBlaZe wrote:
> Can you access the c objec
Can you access the c object of a python object directly? Can this be
done in ctypes or directly throught python functions without reverting
to forking the python module?
scanario:
I have pyctx object that i get in python like this:
pyctx = cairo.Context(surface)
defined in the python extension t