Adding more controls to the player

Now that we have a playlist, we need to ensure that songs play in a queue. We also need to add a few more controls typically found in audio players, such as Next, Previous, Fast Forward, Rewind, and Mute buttons. We also need to provide a method to change the volume of playback.

At the end of this iteration, our player would have the following additional controls in the top-button frame:

Adding more controls to the player

The pyglet API documentation provides simple interfaces for all these controls. For your reference, the documentation is available at:

http://www.pyglet.org/doc/api/pyglet.media.Player-class.html

Let's begin by adding methods to ...

Get Tkinter GUI Application Development HOTSHOT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.