View Single Post
Posts: 1,248 | Thanked: 3,824 times | Joined on May 2011 @ Brazil
PyGlet is a cross-platform windowing and multimedia Python library used in developing games and other visually-rich applications, because it give access to : OpenGL (2D & 3D graphics), text and image manipulation, keyboard and mouse events, playing multimedia formats, etc.

PyGlet is written in pure Python and has no external dependencies. But anyway, PyGlet uses OpenGL, and most mobile OS have only OpenGL ES implemented, so Android, iOS, Symbian, etc, don't run PyGlet.

Maemo 5 (Fremantle) OS exceptionally has Mesa packages ('libglu1-mesa' and 'libgl1-mesa-swx11') so it is possible to run PyGlet ! But not all PyGlet examples work due to the differences between desktop OS (Windows, Linux, MacOS) and Maemo 5 OS (a mobile Linux) and the fact that PyGlet wasn't designed to run on mobile OS.

See the PyGlet for Maemo 5 OS site for more details.

'' example from the 'examples' directory of PyGlet source-code, which runs a rotating torus in 3D space :

Install & use on Maemo 5 :
Enable extras-devel or extras-testing repository, then in the "X terminal" :
$ sudo gainroot
# apt-get update
# apt-get install python-pyglet
PyGlet is optified and takes 6.4 MB after install, while its Mesa dependencies are not optified and use 5.2 MB of root partition.
The PyGlet documentation and examples can also installed by typing '# apt-get install pyglet-doc'. It is optified and uses 10.0 MB after install.
The 'pyglet-doc' examples are located at '/usr/lib/python2.5/site-packages/pyglet-doc/' directory.

One excellent application of PyGlet is SymPy, whose 'Plot()' and 'preview()' functions only work if PyGlet is installed. See the topic SymPy (Computer Algebra System) for Maemo 4 & 5 & 6 or the SymPy for smartphones & tablets site for more details.

If you want PyGlet promoted to extras repository, please vote in :
PyGlet 1.1.4 Maemo2
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
2 Jolla 1, Jolla C, Jolla Tablet. 2 Nokia N9. Nexus 4 with Sailfish. Nokia N900 & N810.

Last edited by rcolistete; 2012-02-07 at 22:01. Reason: Fixed 'extras' to 'extras-devel' repository

The Following 12 Users Say Thank You to rcolistete For This Useful Post: