Package Pmv :: Module repairCommands :: Class AddOXTGUICommand
[hide private]
[frames] | no frames]

Class AddOXTGUICommand

source code

 ViewerFramework.VFCommand.Command --+    
                                     |    
                   mvCommand.MVCommand --+
                                         |
ViewerFramework.VFCommand.ICOM --+       |
                                 |       |
                  mvCommand.MVICOM --+   |
                                     |   |
                  mvCommand.MVAtomICOM --+
                                         |
                                        AddOXTGUICommand

This class provides GUICommand for AddOXT which adds oxygen atom to
terminal carbon atom.
    
Package : Pmv
   
Module  : repairCommands
   
Class   : AddOXTGUICommand
   
Command : add_oxtGC
   
Synopsis:

        AtomSet([oxt]) <--- add_oxtGC(atoms)
   
Required Arguments:
        
        atoms --- atom(s)
        
oxt --- the new oxt atom
    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, atoms, **kw)
AtomSet([oxt]) <--- add_oxtGC(atoms)
  doit(self, ats)
ats[0] must be a carbon with two bonds, one of which is to an oxygen
  guiCallback(self, event=None)
  startICOM(self)
gets called every time this command is about to be run becuase of a picking event.

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildFormDescr, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg

Inherited from mvCommand.MVAtomICOM: getObjects

Inherited from ViewerFramework.VFCommand.ICOM: initICOM, stopICOM


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

onAddCmdToViewer(self)

source code 
method called when an instance of this command is added to the viewer. This enable viewer-addition time initializations
Overrides: ViewerFramework.VFCommand.Command.onAddCmdToViewer
(inherited documentation)

__call__(self, atoms, **kw)
(Call operator)

source code 

AtomSet([oxt]) <--- add_oxtGC(atoms)

atoms --- atom(s)

oxt --- the new oxt atom
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, ats)

source code 
ats[0] must be a carbon with two bonds, one of which is to an oxygen
Overrides: ViewerFramework.VFCommand.Command.doit

guiCallback(self, event=None)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

startICOM(self)

source code 
gets called every time this command is about to be run becuase of a picking event. It is called just before the Pick is converted into objects.
Overrides: ViewerFramework.VFCommand.ICOM.startICOM
(inherited documentation)