The pyglet module

Pyglet is a cross-platform windowing and multimedia library for Python. It can be downloaded at https://bitbucket.org/pyglet/pyglet/wiki/Download.

Pyglet can be installed using the pip installer, which is the default package manager for Python by using the following command:

pip3 install pyglet

Windows users can also download and install binary packages for pyglet from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyglet.

Pyglet needs another module called AVbin to support playback of file formats such as MP2 and MP3. AVbin can be obtained for Windows, Linux, and macOS from the download section at http://avbin.github.io.

Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.