Hello,
I'm trying Visual v4 beta14 with Python 2.5 on my computer.
It's nice to find v4 support texturing and transparency besides of the
improved display quality.
However, after replace my v3 with the v4 beta 14, the vpython program
doesn't response the keyboard input any more! I also tried beta 14 with
Python 2.4, it doesn't work neither.
I don't know if you guys have the same problem or it's cause by some
other reason. Simply try this
########################################################
from visual import *
while 1:
rate(10)
if scene.kb.keys: # is there an event waiting to be processed?
print "key is pressed!"
s = scene.kb.getkey() # obtain keyboard information
if s=='a':
print "a is pressed!"
if scene.mouse.clicked:
scene.mouse.getclick()
print "mouse is clicked."
#########################################################
On my computer (winxp home), the script does response the mouse
click but not the key press.
Should I go back to v3.1?
Thank you!
Ting
|