/usr/share/doc/python-pyx-doc/examples/hello.txt is in python-pyx-doc 0.12.1-4.
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 | Hello, world!
As it is good practice to say "Hello, world!" in the first example, let's
discuss how to do that in PyX.
At first we import the PyX modules. Most PyX programs will start with a line
like that. In order to produce some output we create a canvas instance `c`.
Such an instance provides some useful methods to output some text at a certain
position and for directly stroking a path, for which we use a `line` instance
from the `path` module here. Once this is done, we write an EPS file and a PDF
file containing all items inserted into the canvas instance. Since we did not
pass a filename as argument to the write methods, the resulting files will just
be named as the Python script - minus the extension, of course.
|