Package Pmv :: Module controlPanelCommands :: Class ControlPanel
[hide private]
[frames] | no frames]

Class ControlPanel

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       ControlPanel

Display a widget showing a tree representation of the molecules in the Viewer and check buttons allowing to carry out command on parts of molecules directly. Certain commands such as coloring or displaying lines, CPK and S&B are implmented as mutually exclusive (i.e. like radio buttons.

Instance Methods [hide private]
  hide(self)
  show(self)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  addMolecules(self, mols)
  guiCallback(self)
  onAddObjectToViewer(self, obj)
Add the new molecule to the tree
  onRemoveObjectFromViewer(self, obj)
  handleDeleteEvents(self, event)
Function to update tree when molecualr fragments are delete.
  handleAddEvents(self, event)
Function to update tree when molecualr fragments are added.
  onCmdRun(self, command, *args, **kw)
if the list in self.vf.cmdsWithOnRun[cmd] holds this command, each time cmd runs this method will be called

Inherited from mvCommand.MVCommand: __init__, strArg

Inherited from mvCommand.MVCommand (private): _strArg

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


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

hide(self)

source code 
None

show(self)

source code 
None

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)

addMolecules(self, mols)

source code 
None

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

onAddObjectToViewer(self, obj)

source code 
Add the new molecule to the tree

onRemoveObjectFromViewer(self, obj)

source code 
None

handleDeleteEvents(self, event)

source code 
Function to update tree when molecualr fragments are delete.

handleAddEvents(self, event)

source code 
Function to update tree when molecualr fragments are added.

onCmdRun(self, command, *args, **kw)

source code 
if the list in self.vf.cmdsWithOnRun[cmd] holds this command, each time cmd runs this method will be called
Overrides: ViewerFramework.VFCommand.Command.onCmdRun
(inherited documentation)