Key Wait
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
#use "spawn spawn_demo.py, local" to invoke this
#python script from within PyMOL
wait=""
i=0
while i < 12 and wait!="x":
cmd.turn("y", 30)
print "Press enter key to continue or x + enter to terminate"
wait=raw_input()
i=i+1
print "Done"
Note: this approach only works when you have a console window open.