Package Pmv :: Module bondsCommands :: Class RemoveBondsGUICommand
[hide private]
[frames] | no frames]

Class RemoveBondsGUICommand

source code

 ViewerFramework.VFCommand.Command --+    
                                     |    
                   mvCommand.MVCommand --+
                                         |
ViewerFramework.VFCommand.ICOM --+       |
                                 |       |
                  mvCommand.MVICOM --+   |
                                     |   |
                  mvCommand.MVBondICOM --+
                                         |
                                        RemoveBondsGUICommand

The RemoveBondsGUICommands provides an interactive way of deleting picked bonds. To use this command you need to first load it in the application. Once loaded you will find an entry called 'delete bonds' under the bonds entry in the Edit menu. You can then pick on the bonds you wish to delete. This command is undoable.
   
Package : Pmv
   
Module  : bondsCommands
   
Class   : RemoveBondsGUICommand
   
Command : removeBondsGC
   
Synopsis:

        None<---removeBondsGC(bonds)

   
Required Arguments:
    
        bonds  : bond(s)

    



Instance Methods [hide private]
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __init__(self, func=None)
  guiCallback(self)
  stop(self)
  getObjects(self, pick)
  dismiss(self)
  done_cb(self)
  __call__(self, bonds, **kw)
None <- removeBondsGC(bonds, **kw)
  doit(self, bonds)
virtual method.
  setupUndoBefore(self, bonds)
This method builds the self.undoCmds string.

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, showForm, tkCb, updateGeom, warningMsg

Inherited from ViewerFramework.VFCommand.ICOM: initICOM, startICOM, stopICOM


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

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)

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

stop(self)

source code 
None

getObjects(self, pick)

source code 
None
Overrides: mvCommand.MVBondICOM.getObjects

dismiss(self)

source code 
None

done_cb(self)

source code 
None

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

source code 

None <- removeBondsGC(bonds, **kw)

bonds: bonds
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, bonds)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: ViewerFramework.VFCommand.Command.doit
(inherited documentation)

setupUndoBefore(self, bonds)

source code 
This method builds the self.undoCmds string. This method should have the same signature than the __call__. When this string is executed it should undo the actions of this command. This string will be appended to the undoCmdStack list if the command is successfuly carried out. This method handles only commands with the negateKw. Other commands have to overwrite it.
Overrides: ViewerFramework.VFCommand.Command.setupUndoBefore
(inherited documentation)