Teach Your Kids To Code: A Parent-friendly Guide to Python Programming

(vip2019) #1

288 Appendix B



  1. Search for python-pygame. Check the box next to python-
    pygame in the search results and click Apply to complete the
    installation.

  2. Run System Tools 4 Terminal (or XTerm or a similar
    application for your version of Linux). You can start Python 2
    by entering python2 in the terminal window. Then test your
    Pygame installation by entering import pygame at the >>> prompt
    as shown in Figure B-14. Python should reply with >>> to let
    you know that Pygame was successfully imported.


Figure B-14: You can test your installation of Pygame
for Python 2 from the Linux command line terminal.


  1. You can use the Software Center (as shown in “Python for
    Linux” on page 276) or the Synaptic Package Manager shown
    in Figure B-13 to search for and install IDLE for Python 2.
    Use this version of IDLE when running the Pygame apps from
    Chapters 8 through 10.

Free download pdf