Package schrodinger :: Package application :: Package bioluminate :: Module pml_menus :: Class LabelAtomByProp
[hide private]
[frames] | no frames]

Class LabelAtomByProp

PyQt4.QtGui.QAction --+    
                      |    
                MAction --+
                          |
                         LabelAtomByProp

Labels all atoms by a custom atom property

Instance Methods [hide private]
str
getProperty(self, atomobj)
Get the atom property for this action
 
command(self)
Clears all the atom labels and then labels the atoms in self.asl with any label defined by self.label

Inherited from MAction: __init__

Method Details [hide private]

getProperty(self, atomobj)

 

Get the atom property for this action

Parameters:
  • atomobj (schrodinger.structure._StructureAtom object) - The atom object to retrieve the property from
Returns: str
The atom property converted to a string appropriate for display

command(self)

 

Clears all the atom labels and then labels the atoms in self.asl with any label defined by self.label

Overrides: MAction.command