Module requirements for the chapter
We will use some more built-in libraries from the standard Python distribution for this chapter. This includes Tkinter
, os
, math
, threading
, and pickle
modules.
To verify that these modules do exist, simply run the following statement in your Python3 IDLE interactive prompt:
>>> import tkinter, os, math, time, threading, pickle
This should not cause an error as Python3 comes with these modules built into the distribution.
Other than this, you need to add an extra Python module called pygame
.
We will be using the version named 1.9.1 Package, which can be downloaded at: http://www.pygame.org/download.shtml.
Linux users may additionally want to take a look at the following page for instructions on getting pygame
to work with Python 3.x:
http://www.pygame.org/wiki/CompileUbuntu?parent=Compilation
Pygame is a cross-platform package normally used for making games with Python. However, we will just be using a small module from the package named pygame.mixer...