Nice!
Very minor suggestion: You can print entire paragraphs with a single print
statement, using triple quotes:
print """
This is a
paragraph.
"""
For additional physics programs beyond those provided in the demos that
come with VPython, follow the links on the front page of the VPython site:
Use by students in the physics course Matter & Interactions
A module by Markus Gritsch for quickly building ball-and-spring models
Bruce Sherwood
--On Wednesday, October 24, 2001 1:04 AM -0500 Rob Salgado
<sa...@ph...> wrote:
> I recently downloaded and installed the Windows version of VPython.
> It looks quite nice.
>
> For my first Python program, I coded something that seemed difficult
> [for me] to do using VRML with EAI/Java scripting.
>
> http://www.physics.syr.edu/~salgado/software/vpython/EFieldBuilder.py
>
> It allows the user to assemble electric charges in space
> and see the resulting electric field vectors.
>
> It's version 0.99 because it seems to crash once in a while.
> When I have more time, I'll try to reproduce the problem.
>
> I would appreciate any suggestions for improvement.
> Thanks.
>
> rob
> sa...@ph...
> http://physics.syr.edu/~salgado/
>
> P.S.
> Where can one find other physics-oriented vpython programs?
|