File: examples.rst

package info (click to toggle)
python-sfml 2.2~git20150611.196c88%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,816 kB
  • ctags: 1,605
  • sloc: python: 1,125; cpp: 309; makefile: 118
file content (87 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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: