python-visual

Visual module in python assign objects

Hi all, I am a newb in Visual module in python, not really understand how does it assign a value to an objects. say from visual import * stars=[] galaxies=[] for i in range(10): stars+=[sphere('pos,radius,color.....')] for j in range(20): galaxies+=[sphere('pos,radius,color......')] for k in range(30): stars[k].pos=position...

Display objects within a function, how to NOT terminate the program after close the display?

Hi all, see the example: from visual import * def hello(): newyear=2010 sphere() return newyear my problem here is when I call function hello(), a sphere display window shows up, and also prints 2010, however if I close the display window, the program terminates. That is not what I want, how can I avoid this? also, in my ...