From: Andrew D. <dou...@la...> - 2004-01-23 16:18:34
|
On Sat, 17 Jan 2004, Cornelius Sicker wrote: > Hi, > thanks for your answer. I already tried to create a slider with > visual.controls, i neglect to write this. I'm sorry. > I also tried to install the current version of VPython, but this > requires Python 2.3, and the module "controls" is already implemented in > my version of VPython. For better representation > I give you my code (so far I've written): > > slider1 = slider(x=0, y=0, width=2, length=20, action='here I don't know > what to do') I had some degree of success implementing some controls for a simulation of a damped, driven pendulum. It's about 300 lines long, so I won't include it here, but you can download it at http://www.lafayette.edu/~doughera/other/python/examples/drivenpend.py It was my first attempt, and I'm sure there are better ways to do it, but you might find it helpful. -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |