286 Appendix B
- Run the Pygame installer by holding down the control key,
clicking the file, and selecting Open with 4 Installer from the
pop-up menu that appears. The steps will be similar to those
for installing Python: click Continue a few times, accept the
license, and choose the installation drive. Click Close when
the installer finishes. - To test your Pygame installation, go to your Applications folder,
select Python 2.7, and open IDLE. In IDLE for Python 2.7,
type import pygame. IDLE should respond with >>>, as shown in
F ig u re B -11.
Figure B-11: Import Pygame in the Python shell.
- You might get a pop-up notice like the one in Figure B-12 say-
ing that you need to install X11, a windowing system used by
Pygame. Click Continue to go to the XQuartz website, h t t p : //
xquartz.macosforge.org/. Download XQuartz-2.7.7.dmg, open the
file, and run the installer package.
Figure B-12: Click Continue to install X11.
- To run the Pygame programs in Chapters 8 through 10, use
Python 2.7 IDLE instead of Python 3.4 IDLE.
n ote On newer Macs with Retina displays, using Pygame with Python 2.7
looks a bit different than it does on other computers because Retina
displays use a higher screen resolution. Your programs should work
fine, but they will appear in a smaller area of the screen.