"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/menu.py" between
pymol-v2.1.0.tar.bz2 and pymol-open-source-2.2.0.tar.gz

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.

menu.py  (pymol-v2.1.0.tar.bz2):menu.py  (pymol-open-source-2.2.0)
skipping to change at line 1110 skipping to change at line 1110
selected = self_cmd.get_object_list(sele) selected = self_cmd.get_object_list(sele)
return [[ 2, 'Copy To:', '' ], return [[ 2, 'Copy To:', '' ],
[ 1, 'new', 'cmd.create(None,"' + sele + '",zoom=0)' ], [ 1, 'new', 'cmd.create(None,"' + sele + '",zoom=0)' ],
[ 0, '', '' ], [ 0, '', '' ],
] + [ ] + [
[ 1, oname, 'cmd.copy_to("' + oname + '","' + sele + '",zoom=0 ,quiet=0)' ] [ 1, oname, 'cmd.copy_to("' + oname + '","' + sele + '",zoom=0 ,quiet=0)' ]
for oname in onames for oname in onames
if oname not in selected if oname not in selected
] ]
def move_to_group(self_cmd, sele):
gnames = self_cmd.get_names_of_type('object:group')
return [
[ 2, 'Move to Group:', '' ],
[ 1, 'new', 'cmd.group(cmd.get_unused_name("group"),"' + sele + '")' ],
[ 1, 'ungroup', 'cmd.ungroup("' + sele + '")' ],
[ 0, '', '' ],
] + [
[ 1, gname, 'cmd.group("' + gname + '","' + sele + '",quiet=0)' ]
for gname in gnames if gname != sele
]
def sele_action(self_cmd, sele): def sele_action(self_cmd, sele):
return [[ 2, 'Action:' ,'' ], return [[ 2, 'Action:' ,'' ],
[ 1, del_col + 'delete selection', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete selection', 'cmd.delete("'+sele+'")' ],
[ 1, 'rename selection', 'cmd.wizard("renaming","'+sele+'")' ], [ 1, 'rename selection', 'cmd.wizard("renaming","'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ], [ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ],
[ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' ,'cmd.origin("'+sele+'")' ], [ 1, 'origin' ,'cmd.origin("'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
skipping to change at line 1183 skipping to change at line 1195
[ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ], [ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'preset' , presets(self_cmd, sele) ], [ 1, 'preset' , presets(self_cmd, sele) ],
[ 1, 'find', find(self_cmd, sele) ], [ 1, 'find', find(self_cmd, sele) ],
[ 1, 'align', mol_align(self_cmd, sele) ], [ 1, 'align', mol_align(self_cmd, sele) ],
[ 1, 'generate' , mol_generate(self_cmd, sele) ], [ 1, 'generate' , mol_generate(self_cmd, sele) ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'assign sec. struc.' ,'cmd.dss("'+sele+'")' ], [ 1, 'assign sec. struc.' ,'cmd.dss("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename group', 'cmd.wizard("renaming","'+sele+'")' ], [ 1, 'rename group', 'cmd.wizard("renaming","'+sele+'")' ],
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 1, del_col + 'delete group', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete group', 'cmd.delete("'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'hydrogens' , hydrogens(self_cmd, sele) ], [ 1, 'hydrogens' , hydrogens(self_cmd, sele) ],
[ 1, rem_col + 'remove waters', 'cmd.remove("(solvent and ('+sele+') )")' ], [ 1, rem_col + 'remove waters', 'cmd.remove("(solvent and ('+sele+') )")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'state' , state(self_cmd, sele) ], [ 1, 'state' , state(self_cmd, sele) ],
[ 1, 'masking' , masking(self_cmd, sele) ], [ 1, 'masking' , masking(self_cmd, sele) ],
[ 1, 'sequence' , sequence(self_cmd, sele) ], [ 1, 'sequence' , sequence(self_cmd, sele) ],
[ 1, 'movement' , movement(self_cmd, sele) ], [ 1, 'movement' , movement(self_cmd, sele) ],
[ 1, 'compute' , compute(self_cmd, sele) ], [ 1, 'compute' , compute(self_cmd, sele) ],
skipping to change at line 1217 skipping to change at line 1230
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'preset' , presets(self_cmd, sele) ], [ 1, 'preset' , presets(self_cmd, sele) ],
[ 1, 'find', find(self_cmd, sele) ], [ 1, 'find', find(self_cmd, sele) ],
[ 1, 'align', mol_align(self_cmd, sele) ], [ 1, 'align', mol_align(self_cmd, sele) ],
[ 1, 'generate' , mol_generate(self_cmd, sele) ], [ 1, 'generate' , mol_generate(self_cmd, sele) ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'assign sec. struc.' ,'cmd.dss("'+sele+'")' ], [ 1, 'assign sec. struc.' ,'cmd.dss("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename object', 'cmd.wizard("renaming","'+sele+'")' ] , [ 1, 'rename object', 'cmd.wizard("renaming","'+sele+'")' ] ,
[ 1, 'copy to object' , lambda: copy_to(self_cmd, sele) ], [ 1, 'copy to object' , lambda: copy_to(self_cmd, sele) ],
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 1, del_col + 'delete object', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete object', 'cmd.delete("'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'hydrogens' , hydrogens(self_cmd, sele) ], [ 1, 'hydrogens' , hydrogens(self_cmd, sele) ],
[ 1, rem_col + 'remove waters', 'cmd.remove("(solvent and ('+sele+') )")' ], [ 1, rem_col + 'remove waters', 'cmd.remove("(solvent and ('+sele+') )")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'state' , state(self_cmd, sele) ], [ 1, 'state' , state(self_cmd, sele) ],
[ 1, 'masking' , masking(self_cmd, sele) ], [ 1, 'masking' , masking(self_cmd, sele) ],
[ 1, 'sequence' , sequence(self_cmd, sele) ], [ 1, 'sequence' , sequence(self_cmd, sele) ],
[ 1, 'movement' , movement(self_cmd, sele) ], [ 1, 'movement' , movement(self_cmd, sele) ],
[ 1, 'compute' , compute(self_cmd, sele) ], [ 1, 'compute' , compute(self_cmd, sele) ],
skipping to change at line 1245 skipping to change at line 1259
[ 1, 'tracking on' , 'cmd.set("slice_track_camera",1,"'+sele+'")' ], [ 1, 'tracking on' , 'cmd.set("slice_track_camera",1,"'+sele+'")' ],
[ 1, 'tracking off' , 'cmd.set("slice_track_camera",0,"'+sele+'")' ], [ 1, 'tracking off' , 'cmd.set("slice_track_camera",0,"'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'height map on' , 'cmd.set("slice_height_map",1,"'+sele+'")' ], [ 1, 'height map on' , 'cmd.set("slice_height_map",1,"'+sele+'")' ],
[ 1, 'height map off', 'cmd.set("slice_height_map",0,"'+sele+'")' ], [ 1, 'height map off', 'cmd.set("slice_height_map",0,"'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'dynamic grid on' , 'cmd.set("slice_dynamic_grid",1,"'+sele+' ")' ], [ 1, 'dynamic grid on' , 'cmd.set("slice_dynamic_grid",1,"'+sele+' ")' ],
[ 1, 'dynamic grid off', 'cmd.set("slice_dynamic_grid",0,"'+sele+' ")' ], [ 1, 'dynamic grid off', 'cmd.set("slice_dynamic_grid",0,"'+sele+' ")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ], [ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ],
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
] ]
def simple_action(self_cmd, sele): def simple_action(self_cmd, sele):
return [[ 2, 'Action:' , '' ], return [[ 2, 'Action:' , '' ],
[ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' , 'cmd.origin("'+sele+'")' ], [ 1, 'origin' , 'cmd.origin("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'drag' , 'cmd.drag("'+sele+'")' ], [ 1, 'drag' , 'cmd.drag("'+sele+'")' ],
[ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ], [ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] , [ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] ,
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
] ]
def iso_with_negative(mapname, suffix, rep, level=1, color='blue'): def iso_with_negative(mapname, suffix, rep, level=1, color='blue'):
name = mapname + suffix name = mapname + suffix
return ('cmd.iso%s("%s","%s", %s);\n' return ('cmd.iso%s("%s","%s", %s);\n'
'cmd.set("%s_negative_visible",1,"%s",quiet=0);\n' 'cmd.set("%s_negative_visible",1,"%s",quiet=0);\n'
'cmd.color("%s","%s")' % (rep, name, mapname, level, rep, name, colo r, name)) 'cmd.color("%s","%s")' % (rep, name, mapname, level, rep, name, colo r, name))
skipping to change at line 1346 skipping to change at line 1362
[ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' , 'cmd.origin("'+sele+'")' ], [ 1, 'origin' , 'cmd.origin("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'drag' , 'cmd.drag("'+sele+'")' ], [ 1, 'drag' , 'cmd.drag("'+sele+'")' ],
[ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ], [ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'matrix_copy' , mat_tran(self_cmd, sele, 1) ], [ 1, 'matrix_copy' , mat_tran(self_cmd, sele, 1) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] , [ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] ,
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
] ]
def level(self_cmd, sele): def level(self_cmd, sele):
return [[ 2, 'Level', '' ], return [[ 2, 'Level', '' ],
[ 1, 'level 5.0' , 'cmd.isolevel("'+sele+'",5.0)' ], [ 1, 'level 5.0' , 'cmd.isolevel("'+sele+'",5.0)' ],
[ 1, 'level 4.0' , 'cmd.isolevel("'+sele+'",4.0)' ], [ 1, 'level 4.0' , 'cmd.isolevel("'+sele+'",4.0)' ],
[ 1, 'level 3.0' , 'cmd.isolevel("'+sele+'",3.0)' ], [ 1, 'level 3.0' , 'cmd.isolevel("'+sele+'",3.0)' ],
[ 1, 'level 2.0' , 'cmd.isolevel("'+sele+'",2.0)' ], [ 1, 'level 2.0' , 'cmd.isolevel("'+sele+'",2.0)' ],
skipping to change at line 1381 skipping to change at line 1398
[ 1, 'level' , level(self_cmd, sele) ], [ 1, 'level' , level(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' , 'cmd.origin("'+sele+'")' ], [ 1, 'origin' , 'cmd.origin("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'drag' , 'cmd.drag("'+sele+'")' ], [ 1, 'drag' , 'cmd.drag("'+sele+'")' ],
[ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ], [ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] , [ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] ,
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
] ]
def mesh_action(self_cmd, sele): def mesh_action(self_cmd, sele):
return [[ 2, 'Action:' , '' ], return [[ 2, 'Action:' , '' ],
[ 1, 'level' , level(self_cmd, sele) ], [ 1, 'level' , level(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' , 'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' , 'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' , 'cmd.origin("'+sele+'")' ], [ 1, 'origin' , 'cmd.origin("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'drag' , 'cmd.drag("'+sele+'")' ], [ 1, 'drag' , 'cmd.drag("'+sele+'")' ],
[ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ], [ 1, 'reset' , 'cmd.reset(object="'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] , [ 1, 'rename' , 'cmd.wizard("renaming","'+sele+'")' ] ,
[ 1, 'group' , lambda: move_to_group(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
] ]
def ramp_action(self_cmd, sele): def ramp_action(self_cmd, sele):
return [[ 2, 'Action:' , '' ], return [[ 2, 'Action:' , '' ],
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
[ 0, '', '' ], [ 0, '', '' ],
[ 1, 'levels', [ [ 1, 'levels', [
[ 1, 'Range +/- %.1f' % (L), [ 1, 'Range +/- %.1f' % (L),
skipping to change at line 1512 skipping to change at line 1531
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'b-factor' , 'cmd.label("'+sele+'","\'%1.2f\'%b")' ], [ 1, 'b-factor' , 'cmd.label("'+sele+'","\'%1.2f\'%b")' ],
[ 1, 'occupancy' , 'cmd.label("'+sele+'","\'%1.2f\'%q")' ], [ 1, 'occupancy' , 'cmd.label("'+sele+'","\'%1.2f\'%q")' ],
[ 1, 'vdw radius' , 'cmd.label("'+sele+'","\'%1.2f\'%vdw")' ], [ 1, 'vdw radius' , 'cmd.label("'+sele+'","\'%1.2f\'%vdw")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'other properties' , label_props(self_cmd, sele) ], [ 1, 'other properties' , label_props(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'atom identifiers' , label_ids(self_cmd, sele) ], [ 1, 'atom identifiers' , label_ids(self_cmd, sele) ],
] ]
def mol_ss(self_cmd, sele):
fmt = '''cmd.alter("{}","ss='{}'",quiet=0);cmd.rebuild()'''
return [
[2, 'Secondary Structure:', '' ],
[1, 'H (helix)', fmt.format(sele, 'H')],
[1, 'S (sheet)', fmt.format(sele, 'S')],
[1, 'L (loop)' , fmt.format(sele, 'L')],
[0, '', ''],
[1, 'dss' , 'cmd.dss("{0}", context="byobject ({0})")'.format(sele) ],
]
def mol_view(self_cmd, sele): def mol_view(self_cmd, sele):
return [ return [
[ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ], [ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ],
[ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' ,'cmd.origin("'+sele+'")' ], [ 1, 'origin' ,'cmd.origin("'+sele+'")' ],
] ]
def all_option(self_cmd, sele): def all_option(self_cmd, sele):
return [ return [
skipping to change at line 1648 skipping to change at line 1678
[ 2, title, '' ], [ 2, title, '' ],
[ 1, 'disable' , 'cmd.disable("'+sele+'")' ], [ 1, 'disable' , 'cmd.disable("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'actions', sele_action2(self_cmd, sele) ], [ 1, 'actions', sele_action2(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'color' , mol_color(self_cmd, sele) ], [ 1, 'color' , mol_color(self_cmd, sele) ],
[ 1, 'show' , mol_show(self_cmd, sele) ], [ 1, 'show' , mol_show(self_cmd, sele) ],
[ 1, 'hide' , mol_hide(self_cmd, sele) ], [ 1, 'hide' , mol_hide(self_cmd, sele) ],
[ 1, 'preset' , presets(self_cmd, sele) ], [ 1, 'preset' , presets(self_cmd, sele) ],
[ 1, 'label' , mol_labels(self_cmd, sele) ], [ 1, 'label' , mol_labels(self_cmd, sele) ],
[ 1, 'ss' , mol_ss(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ], [ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ],
[ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' ,'cmd.origin("'+sele+'")' ], [ 1, 'origin' ,'cmd.origin("'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'drag' ,'cmd.drag("'+sele+'")' ], [ 1, 'drag' ,'cmd.drag("'+sele+'")' ],
[ 1, 'clean' ,'cmd.clean("'+sele+'")' ], [ 1, 'clean' ,'cmd.clean("'+sele+'")' ],
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, rem_col + 'remove', 'cmd.remove("'+sele+'")' ], [ 1, rem_col + 'remove', 'cmd.remove("'+sele+'")' ],
skipping to change at line 1696 skipping to change at line 1727
[ 1, 'clean' ,'cmd.clean("'+sele+'")' ], [ 1, 'clean' ,'cmd.clean("'+sele+'")' ],
[ 1, 'masking' , masking(self_cmd, sele) ], [ 1, 'masking' , masking(self_cmd, sele) ],
[ 1, 'movement' , movement(self_cmd, sele) ], [ 1, 'movement' , movement(self_cmd, sele) ],
]) ])
if object: if object:
result.extend([ result.extend([
[ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ], [ 1, del_col + 'delete', 'cmd.delete("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'disable' ,'cmd.disable("'+sele+'")' ], [ 1, 'disable' ,'cmd.disable("'+sele+'")' ],
[ 1, 'disable others' ,'cmd.disable("*");cmd.enable("'+sele+'", 1)' ],
]) ])
else: else:
result.extend([ result.extend([
[ 1, rem_col + 'remove atoms', 'cmd.remove("'+sele+'")' ], [ 1, rem_col + 'remove atoms', 'cmd.remove("'+sele+'")' ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'copy to object' , lambda: copy_to(self_cmd, sele) ], [ 1, 'copy to object' , lambda: copy_to(self_cmd, sele) ],
[ 1, 'extract object' ,'cmd.extract(None,"'+sele+'",zoom=0)' ], [ 1, 'extract object' ,'cmd.extract(None,"'+sele+'",zoom=0)' ],
]) ])
return result return result
skipping to change at line 1737 skipping to change at line 1769
c = c-1 c = c-1
title = title[0:c+1] title = title[0:c+1]
result = [ result = [
[ 2, title, '' ], [ 2, title, '' ],
[ 1, 'color' , mol_color(self_cmd, sele) ], [ 1, 'color' , mol_color(self_cmd, sele) ],
[ 1, 'show' , mol_show(self_cmd, sele) ], [ 1, 'show' , mol_show(self_cmd, sele) ],
[ 1, 'hide' , mol_hide(self_cmd, sele) ], [ 1, 'hide' , mol_hide(self_cmd, sele) ],
[ 1, 'preset' , presets(self_cmd, sele) ], [ 1, 'preset' , presets(self_cmd, sele) ],
[ 1, 'label' , mol_labels(self_cmd, sele) ], [ 1, 'label' , mol_labels(self_cmd, sele) ],
[ 1, 'ss' , mol_ss(self_cmd, sele) ],
[ 0, '' , '' ], [ 0, '' , '' ],
[ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ], [ 1, 'zoom' ,'cmd.zoom("'+sele+'",animate=-1)' ],
[ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ], [ 1, 'orient' ,'cmd.orient("'+sele+'",animate=-1)' ],
[ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ], [ 1, 'center' ,'cmd.center("'+sele+'",animate=-1)' ],
[ 1, 'origin' ,'cmd.origin("'+sele+'")' ], [ 1, 'origin' ,'cmd.origin("'+sele+'")' ],
[ 1, 'select' ,'cmd.select("'+sele+'",enable=1,merge=2)' ] , [ 1, 'select' ,'cmd.select("'+sele+'",enable=1,merge=2)' ] ,
[ 0, '' ,'' ], [ 0, '' ,'' ],
[ 1, 'drag' ,'cmd.drag("'+sele+'")' ], [ 1, 'drag' ,'cmd.drag("'+sele+'")' ],
[ 1, 'clean' ,'cmd.clean("'+sele+'")' ], [ 1, 'clean' ,'cmd.clean("'+sele+'")' ],
] ]
 End of changes. 12 change blocks. 
0 lines changed or deleted 33 lines changed or added

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