|
From: Michele M. <mat...@gm...> - 2009-05-21 16:40:36
|
Dear list,
Is there anyway to get the prompt back and still having the vpython
window able to respond to the event?
The window can zoom and rotate and return the prompt. I would like to
achieve the same result, but handling other kind of mouse events.
My goal is to launch the application and get back the ipython prompt
Is that possible?
Consider the following code:
import visual as vs
scene = vs.display(title="test")
vs.sphere()
while (True):
if scene.mouse.clicked:
m = scene.mouse.getclick()
loc = m.pos
print loc
picked = m.pick
if picked:
picked.color = (0,0,1) #blue
Is there any other way to process the events instead of using the while?
Cheers,
Michele
|