[Announce] PyGlet for Maemo 5
View Single Post
02-04-2012 , 05:30 PM
Posts: 854 | Thanked: 1,939 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 :
- calculating mathematical integrals, derivatives and limits.
- Computer Algebra System.
- 2D & 3D plots in Python.
- Python interactive shell.
- OpenGL, etc in Python.
My blog about mobile & scientific computing
2 Nokia N9
16GB Black @ 1.35 GHz with Easy Debian, 1 with Sailfish, Stowaway foldable BT keyboard.
@ 1.1 GHz, EasyDebian, NITDroid 2.2.
with cloned Maemo on SD, EasyDebian.
Last edited by rcolistete; 02-07-2012 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