importing.py (pymol-v1.8.6.0.tar.bz2) | : | importing.py (pymol-v2.1.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 49 | skipping to change at line 49 | |||
pymol.cmd.turn("y",85) | pymol.cmd.turn("y",85) | |||
pymol.cmd.zoom("all",20) | pymol.cmd.zoom("all",20) | |||
pymol.cmd.orient("organic & e. N+O",animate=10) | pymol.cmd.orient("organic & e. N+O",animate=10) | |||
pymol.cmd.show("sticks","organic") | pymol.cmd.show("sticks","organic") | |||
# play peek-a-boo with the window | # play peek-a-boo with the window | |||
if 1: | if 1: | |||
time.sleep(5) | time.sleep(5) | |||
pymol.cmd.window("hide") | pymol.cmd.window("hide") | |||
print "Peek-a-boo!" | print("Peek-a-boo!") | |||
time.sleep(1) | time.sleep(1) | |||
pymol.cmd.window("show") | pymol.cmd.window("show") | |||
time.sleep(5) | time.sleep(5) | |||
pymol.cmd.window("hide") | pymol.cmd.window("hide") | |||
print "Peek-a-boo!" | print("Peek-a-boo!") | |||
time.sleep(1) | time.sleep(1) | |||
pymol.cmd.window("show") | pymol.cmd.window("show") | |||
time.sleep(5) | time.sleep(5) | |||
pymol.cmd.window("hide") | pymol.cmd.window("hide") | |||
print "Peek-a-boo!" | print("Peek-a-boo!") | |||
time.sleep(1) | time.sleep(1) | |||
pymol.cmd.window("show") | pymol.cmd.window("show") | |||
# now quit | # now quit | |||
print "Quitting..." | print("Quitting...") | |||
time.sleep(1) | time.sleep(1) | |||
print "3..." | print("3...") | |||
time.sleep(1) | time.sleep(1) | |||
print "2..." | print("2...") | |||
time.sleep(1) | time.sleep(1) | |||
print "1..." | print("1...") | |||
time.sleep(1) | time.sleep(1) | |||
print "Die!" | print("Die!") | |||
# note, we cannot let the main thread terminate without first calling | # note, we cannot let the main thread terminate without first calling | |||
# pymol.cmd.quit() which will take-down PyMOL | # pymol.cmd.quit() which will take-down PyMOL | |||
pymol.cmd.quit() | pymol.cmd.quit() | |||
End of changes. 8 change blocks. | ||||
8 lines changed or deleted | 8 lines changed or added |