Examples
========
.. highlight:: python
   :linenothreshold: 5

.. contents:: :local:

If you downloaded a source archive or cloned pySFML from github, these examples
will be located in the examples subdirectory of the project's root. A package
named 'pysfml-examples' is also available for Debian-based Linux
distributions, which allows you to run arbitrary examples by invoking a command
of the following form from a terminal::

    pysfml-<example name>

For example::

    pysfml-sound

Ftp
---
.. literalinclude:: /../../examples/ftp/ftp.py
   :linenos:

Pong
----
.. literalinclude:: /../../examples/pong/pong.py
   :linenos:

PyQt4
-----
.. literalinclude:: /../../examples/pyqt4/qsfml_canvas.py
   :linenos:

Shader
------
.. literalinclude:: /../../examples/shader/shader.py
   :linenos:

Sockets
-------
.. literalinclude:: /../../examples/sockets/sockets.py
   :linenos:

Sound capture
-------------
.. literalinclude:: /../../examples/sound_capture/sound_capture.py
   :linenos:

Sound
-----
.. literalinclude:: /../../examples/sound/sound.py
   :linenos:

Voip
----
.. literalinclude:: /../../examples/voip/voip.py
   :linenos:

.. literalinclude:: /../../examples/voip/client.py
   :linenos:

.. literalinclude:: /../../examples/voip/server.py
   :linenos:


Embedding
---------
.. literalinclude:: /../../examples/embedding/main.cpp
   :linenos:

.. literalinclude:: /../../examples/embedding/script.py
   :linenos:

Extending
---------
.. literalinclude:: /../../examples/extending/extension.pyx
   :linenos:

.. literalinclude:: /../../examples/extending/main.py
   :linenos:

Spacial Music
-------------
.. literalinclude:: /../../examples/spacial_music/spacial_music.py
   :linenos:

