--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There exists a conversion program to convert from Classic VPython to the new VPython 7. See details here.
http://www.glowscript.org/docs/VPythonDocs/index.html
where is says ...
"Many programs written in Classic VPython 6 will run in GlowScript VPython or VPython 7 without change after being run through a conversion program written in Python. This program converts (x,y,z) => vector(x,y,z) and obj.x => obj.pos.x. These changes are necessary because GlowScript does not recognize (x,y,z) as a vector nor obj.x as a shorthand for obj.pos.x. The program also converts display => canvas and gdisplay => graph. The program also converts scene.mouse.getclick() => scene.waitfor('click'), which works in both environments."
the python conversion program is.
http://www.glowscript.org/docs/GlowScriptDocs/VPtoGS.py
Try running your examples from the book through this conversion program.