Table with features / libraries
Starting from 0.4 version, we have introduce abstraction from usual library. That's mean for example, if you want to read and display a video, you don't need to use specifically Gstreamer or OpenCV... but you can use our Video abstraction class. It will use the best library available on your PyMT installation.
| Libraries / Features | Windowing | Image | Text | Audio | Video | Camera | SVG | Spelling |
|---|---|---|---|---|---|---|---|---|
| GLUT (provided by Pyopengl) | X (buggy) | |||||||
| Pygame | X | X | X | X (wav) | ||||
| PIL | X | X | ||||||
| Pyglet | ||||||||
| PyCairo | X | |||||||
| GST + PyGst | X | X | X | |||||
| OpenCV | X | |||||||
| Squirtle | X | |||||||
| Enchant | X |
Needed libraries (core libraries):
- Pyopengl : http://pyopengl.sourceforge.net/
Optional libraries :
- Pygame: http://www.pygame.org/
- PIL: http://www.pythonware.com/products/pil/index.htm
- Pyglet: http://code.google.com/p/pyglet/
- PyCairo: http://www.cairographics.org/pycairo/
- GST + PyGst: http://gstreamer.freedesktop.org/ + http://pygstdocs.berlios.de/
- OpenCV 2.0: http://sourceforge.net/projects/opencvlibrary/
- PyEnchant: http://www.rfk.id.au/software/pyenchant/
How to force selection of a specific library
Each section have a environment variable named: PYMT_section. By default, the first working provider are used. You can force the usage of GLUT windowing by doing:
PYMT_WINDOW=glut python example.py
Or even, force usage of pygame for text rendering :
PYMT_TEXT=pygame python example.py
You can have a persistent environment by doing an export :
export PYMT_TEXT=cairo
export PYMT_WINDOW=pygame
python example.py
export PYMT_WINDOW=pygame
python example.py
