/usr/share/doc/python-enable/examples/kiva/agg/simple2.py is in python-enable 4.3.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from kiva import agg
gc = agg.GraphicsContextArray((500,500))
gc.rect(100,100,300,300)
gc.draw_path()
gc.save("rect.bmp")
# directly manipulate the underlying
# Numeric array.
gc.bmp_array[:100,:100] = 255 * .5
gc.save("rect2.bmp")
|