Key Wait: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 12: Line 12:
</source>
</source>


[[Category:Scripting_Script_Library|Key Wait]]
[[Category:Script_Library|Key Wait]]

Revision as of 16:26, 6 May 2005

#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"