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

Summary

With the end of this chapter, and the end of our blackjack project as a whole, we now know how to add animations to a Tkinter project by making use of the powerful Canvas widget and its methods, such as create_image, create_text, move, and update. We know how to control their frame rate with the use of Tkinter's after method and how to block other functions until the animation is finished with a while loop.

Adding sound into a project has been made very easy by the use of the pygame library. Although the package we made for this chapter used casino-specific sounds, we have learned enough about reusability in order to create a sound collection package for any type of game and application, all we need is the audio files.

By looking ...

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