|
Mac downloads for VPython 6
If you have VPython 5 installed, you need to delete the old folders visual, vis, and vidle from There is an older VPython 5.74 for Python 3.2. How to run VPython
Compatibility with the future and the pastWe encourage you to place the following statement at the start of your programs, in order that your program will run not only on Python 2.7 today, but also will run in the future on the newer Python 3.x series. Note the double underscore before "future" and the double underscore after "future". from __future__ import print_function, division For Python 2.7, this statement invokes the new Python 3.x print format, namely "print(x)" instead of the old "print x", and the new division scheme, namely that 3/4 is 0.75, not zero as in the past. This statement is ignored by Python 3.x. Changes from VPython 5: With VPython 6 you must include a rate statement in animation loops, and you must import visual or vis before importing graph or controls or filedialog. Conditions of use The Polygon module distributed with VPython may not be used except with VPython. Here's why: In support of the text and extrusion objects, the Windows installer includes some modules that include Polygon, for which the following conditions apply: "Polygon is being distributed subject to the following conditions: This distribution contains code from the GPC Library, and/or code resulting from the use of the GPC Library. This usage has been authorized by The University of Manchester, on the understanding that the GPC-related features are used only in the context of this distribution. It is not permitted to extract the GPC code from the distribution as the basis for commercial exploitation, unless a GPC Commercial Use Licence is obtained from The University of Manchester, contact: http://www.cs.man.ac.uk/~toby/gpc/". What is installedThe VPython installer installs the vis, visual, and visual_common modules, the numpy, FontTools, Polygon, and ttfquery modules needed by VPython, and VIDLE, an improved version of the IDLE program editor, in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages. Materials such as woodMaterials such as wood will work with graphics
cards that support Pixel Shader 3.0 ("PS 3.0"). See Python 3It is currently not feasible to run VPython 6 on Python 3, though it is hoped that this will be possible in the future. If you must use Python 3, you can use an older version 5.74 of VPython:
Older versions of VPython are availableFink distribution: At http://www.finkproject.org you will find many open source packages for the Mac, including http://pdb.finkproject.org/pdb/package.php/visual-py27 which is a Fink package corresponding to VPython 5.40. Fink packages use the X11 window manager and are Unix-oriented, so the look and feel is different from native Mac applications. VPython for the older PowerPC MacsSteve Spicklemire has built VPython 5.32 for PPC Macs. |
|||||