"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/devel/click_ordered_list.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

click_ordered_list.py  (pymol-v1.8.6.0.tar.bz2):click_ordered_list.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 82 skipping to change at line 82
self.cmd.refresh_wizard() self.cmd.refresh_wizard()
def reset_list(self): def reset_list(self):
self.click_list = [] self.click_list = []
cmd.select(click_sele,"none",enable=0) cmd.select(click_sele,"none",enable=0)
cmd.select(disp_sele,"none",enable=1) cmd.select(disp_sele,"none",enable=1)
self.cmd.refresh_wizard() self.cmd.refresh_wizard()
def print_list(self): def print_list(self):
cnt = 1 cnt = 1
print "Atoms Clicked (in order):" print("Atoms Clicked (in order):")
for entry in self.click_list: for entry in self.click_list:
print "Atom %d: %s"%(cnt,entry) print("Atom %d: %s"%(cnt,entry))
cnt = cnt + 1 cnt = cnt + 1
def cleanup(self): def cleanup(self):
self.cmd.delete(disp_sele) self.cmd.delete(disp_sele)
self.cmd.delete(click_sele) self.cmd.delete(click_sele)
# load an example structure # load an example structure
cmd.load("$TUT/1hpv.pdb") cmd.load("$TUT/1hpv.pdb")
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)