[Announce] PyGlet for Maemo 5
View Single Post
2012-02-04 , 21:30
Posts: 1,202 | Thanked: 3,581 times | Joined on May 2011 @ Brazil
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.
PyGlet for Maemo 5 OS site
for more details.
'OpenGL.py' 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
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 :
- calculating mathematical integrals, derivatives and limits.
- Computer Algebra System.
- 2D & 3D plots in Python.
- Python interactive shell.
My blog about mobile & scientific computing
Jolla. 2 Nokia N9 16GB Black @ 1.35 GHz, 1 with Sailfish, Stowaway foldable BT keyboard.
Nexus 4 with Sailfish. Nokia N900 @ 1.1 GHz. N810. Nokia 9500. Psion Revo+.
Last edited by rcolistete; 2012-02-07 at
. Reason: Fixed 'extras' to 'extras-devel' repository
Quote & Reply
The Following 12 Users Say Thank You to rcolistete For This Useful Post:
View Public Profile
Send a private message to rcolistete
Visit rcolistete's homepage!
Find all posts by rcolistete