From: Bruce P. <bap...@te...> - 2003-12-02 17:49:17
|
Well after some more testing I found that when I installed Python2.3 somehow the default call from double clicking on a ---.pyw file remained to launch Python 2.2 -- the console version and pythonwin (activestate's IDE) both use Python2.3. sorry about the false alarm Bruce At 04:42 AM 12/2/2003, you wrote: >Bruce Peterson wrote: > >>under windows the ellipsoid object is not recognized in noconsole mode. >> >>example code snipette from stonehenge example >> >>""" The following code runs correctly when run in >> console mode ie 'ellipsoiderr.py' but generates an >> exception when run in noconsole mode ie 'ellipsoiderr.pyw' >>""" >> >> >>from visual import * >>scene.title = "Surreal Stonehenge" >>scene.height = 600 >>scene.width = 600 >>scene.range = (18,18,18) >>scene.center = (0,2,0) >>grey = (0.8, 0.8, 0.8) >>Nslabs = 8 >>R = 10.0 >>w = 5.0 >>d = 0.5 >>h = 5.0 >>v0 = 1 >>v = v0 >> >>Rcloud = 0.8*R >>omegacloud = v0/Rcloud >>try: >> cloud = ellipsoid(pos=(0,0.7*h,-Rcloud), size=(5,2,2), >> color=(0.4,0.4,0.4)) >>except Exception, estmt: >> logfile=file("EllipsoidErr.log","w") >> logfile.write(" Exception was " + str(estmt) + "\n") >> logfile.flush() >> logfile.close() >> >>while 1: >> rate(30) >> >> >>Bruce Peterson >>425 466 7344 > >Works for me in both cmd.exe and idle on WinXP. Exactly what error are >you getting? What is the date that VPython prints out when you run this >program? > >-Jonathan Brandmeyer |