Difference between revisions of "Key Wait"

From PyMOLWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
''Note: this approach only works when you have a console window open.''
 
''Note: this approach only works when you have a console window open.''
 
[[Category:Script_Library|Key Wait]]
 
[[Category:Script_Library|Key Wait]]
 +
[[Category:UI_Scripts]]

Revision as of 08:25, 30 April 2009

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