Package Pmv :: Module SLCommands :: Class SaveBsptCommand
[hide private]
[frames] | no frames]

Class SaveBsptCommand

source code

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

Command to save a Bspt set in a file.

Instance Methods [hide private]
  __init__(self)
  checkDependencies(self)
virtual method.
  guiCallback(self)
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.
  select_cb(self)
  cancel_cb(self)
  doit(self, savefile, selection)
virtual method.
  __call__(self, savefile, selection, **kw)
None <- SaveBspt(savefile, selection): savefile - name of file with .bsp extension; selection - name of Bspt set

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

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


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

checkDependencies(self)

source code 
virtual method. Has to be implemented by the sub classes. Method called when command is loaded, if all the dependencies are not found the command won't be loaded.
Overrides: ViewerFramework.VFCommand.Command.checkDependencies
(inherited documentation)

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

buildFormDescr(self, formName)

source code 
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. This is where the inputFormDescr is created and the description of the widgets appended. If a command has several inputForm buildFormDescr should build all the inputFormDescr and you do a if / elif check to know which one to create. formName : string name of the form corresponding to this descr.
Overrides: ViewerFramework.VFCommand.Command.buildFormDescr
(inherited documentation)

select_cb(self)

source code 
None

cancel_cb(self)

source code 
None

doit(self, savefile, selection)

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

__call__(self, savefile, selection, **kw)
(Call operator)

source code 
None <- SaveBspt(savefile, selection): savefile - name of file with .bsp extension; selection - name of Bspt set
Overrides: ViewerFramework.VFCommand.Command.__call__