/usr/share/doc/python-sfml-doc/examples/extending/main.py is in python-sfml-doc 2.2~git20150611.196c88+dfsg-3.
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 12 13 14 15 16 17 | from sfml import sf
import pyximport; pyximport.install()
import extension
window = sf.RenderWindow(sf.VideoMode(640, 480), "sfml")
image = sf.Image.from_file("image.jpg")
extension.flip_image(image)
texture = sf.Texture.from_image(image)
window.clear()
window.draw(sf.Sprite(texture))
window.display()
sf.sleep(sf.seconds(5))
|