O'Reilly logo

Tkinter GUI Programming by Example by David Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Finishing Touches – Sound and Animation

With our game now wearing its flashy graphical outfit, it's time to step it up one more notch on the scale of professionalism with some sound effects. These will help to engage the user by tapping into another of their senses.

To go along with the sound, we should also make some of the movement more realistic so that it better appears that our game is generating these noises.

Luckily, Tkinter's Canvas widget is well equipped to handle displaying animations and comes with some great built-in tools to make animating a breeze.

We can also take advantage of a popular Python game development library called pygame to make playing sounds incredibly simple.

By the end of this chapter, we will have covered ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required