Directions for Mac Installation

  1. If you haven't already installed PyOpenGL, do so by following these directions
  2. Download the following installation script. Just clicking on that link will download the file to your Mac's desktop
  3. Using the Finder, open up the Utilities folder and launch the terminal application
  4. In the terminal shell, do the following command:
          source ~/Desktop/install-pytw.sh
        
  5. If all goes well, you'll have installed TW and its related modules. Try the following:
          python
          >>> import TW
        
  6. Exit from python (Control-D does it) and cd to ~/Documents. Try running some of the demos, just from the shell:
          python demos/early/BarnTW.py
        
  7. When you're talking to a Python GLUT window, go to Python > Preferences, and in the dialog box, enable multi-button mouse emulation. That way you can use command-click to get the menu that is usually attached to the right button.

Reinstall

If you've already installed TW once, you can save a little time by running ~/Desktop/reinstall-pytw.sh. (If for some reason you don't have it, it is reinstall-pytw.sh. Run it the same way as the install-pytw.sh script:

source ~/Desktop/reinstall-pytw.sh
  1. This work is licensed under a Creative Commons License
  2. Creative Commons License
  3. Viewable With Any
Browser
  4. Valid HTML 4.01!
  5. Valid CSS!