Pyglet
PYGLET is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications. PYGLET runs on Microsoft Windows, Mac OS X, and GNU/Linux; it is released under BSD Licence.
It supports windowed and full-screen operations as well as multiple monitors. Images, video, and sound files in a range of formats can be done natively, with more additional capabilities supplied by the optional AVbin plugin, which uses the Libav package to provide support for audio formats including MP3, Ogg/Vorbis, and Windows Media Audio, and video formats such as DivX, MPEG-2, H.264, WMV, and XviD.
Example
import pyglet
window = pyglet.window.Window(width=640, height=480, caption="Hello World!")
pyglet.app.run()
gollark: You still didn't send me your browser history.
gollark: Well, there's the possibility of blackmail in some cases, and generally just people do not like that. For example, most would not really want to use a toilet in a glass cube in the middle of a public square.
gollark: Please stop with the coral thing. I said that that was okay with an opt-out around.
gollark: I was talking about anonymized stuff *in general* often being problematic.
gollark: Nobody, I said that was basically okay with an opt-out.
See also
- Pygame, another Python game API, a layer over Simple DirectMedia Layer
- Kivy (framework), a Python OpenGL based UI for multitouch interactions
- Cocos2d
- Panda3D
External links
- Official website
- Pyglet's project page on GitHub
- AVbin, Pyglet's wrapper for Libav
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.