Package Pmv :: Module genparserCommands :: Class DefinePdbSpecifications
[hide private]
[frames] | no frames]

Class DefinePdbSpecifications

source code

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

class to define some pdb specifications in a dictionary and save them in a file

Instance Methods [hide private]
  __init__(self)
constructor
  extractSpecs(self, file)
takes a specification file in proper format and creates a specs object
  compareFrom(self, e1, e2)
  compareIndex(self, e1, e2)
  update_SpecBox(self)
writes the specs in self.Specs to the ScrolledText box in gui.
  clearSpecs_cb(self, event=None)
clears the current specifications in the gui
  loadSpecs_cb(self, filename, event=None)
callback function to load specs from a file to the gui
  saveSpecs_cb(self, filename, event=None)
callback function to save pdb specs to filename
  write_from_specBox(self, filename)
takes text from specBox and writes it to a file
  addToSpecs_cb(self, event=None)
callback function to add button.
  removeFromSpecs_cb(self, event=None)
callback to remove button.
  col_selectfield_cb(self, fieldname, event=None)
callback to put current values of fieldname into the entryfield of the gui
  ind_selectfield_cb(self, fieldname, event=None)
callback to put current values of fieldname into the entryfield of the gui
  defineColSpecs_cb(self, event=None)
callback that creates an input form with fields for the user to define the field specifications in column format.
  defineIndSpecs_cb(self, event=None)
callback that creates an input form with fields for the user to define the field specifications in index format.
  hide_widget_group(self, grouptype)
hides widgets of grouptype (either 'i' or 'c').
  show_widget_group(self, grouptype)
shows existing widgets of grouptype (either 'i' or 'c').
  createColumnWidgets(self)
adds widgets to self.idf and self.form useful for column specification format.
  createIndexWidgets(self)
adds widgets to self.idf and self.form useful to specify in index format.
  column_cb(self, event=None)
callback of radiobutton to use column format pdb specifications
  index_cb(self, event=None)
callback of radiobutton to use index format pdb specifications
  guiCallback(self, event=None, *args, **kw)
  indexLabel(self)
creates a label that indexes each space-separated field
  fileinScrolledText_cb(self, filename, event=None)
take a file and puts its text into the scrolled text box
  dismiss_cb(self, event=None)
  dismiss_smallform_cb(self, event=None)

Inherited from mvCommand.MVCommand: 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, 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 
constructor
Overrides: mvCommand.MVCommand.__init__

extractSpecs(self, file)

source code 
takes a specification file in proper format and creates a specs object

compareFrom(self, e1, e2)

source code 
None

compareIndex(self, e1, e2)

source code 
None

update_SpecBox(self)

source code 
writes the specs in self.Specs to the ScrolledText box in gui.

clearSpecs_cb(self, event=None)

source code 
clears the current specifications in the gui

loadSpecs_cb(self, filename, event=None)

source code 
callback function to load specs from a file to the gui

saveSpecs_cb(self, filename, event=None)

source code 
callback function to save pdb specs to filename

write_from_specBox(self, filename)

source code 
takes text from specBox and writes it to a file

addToSpecs_cb(self, event=None)

source code 
callback function to add button. Adds the specs in the entry fields to the self.Specs object.

removeFromSpecs_cb(self, event=None)

source code 
callback to remove button. Removes spec given by user from the self.Specs object.

col_selectfield_cb(self, fieldname, event=None)

source code 
callback to put current values of fieldname into the entryfield of the gui

ind_selectfield_cb(self, fieldname, event=None)

source code 
callback to put current values of fieldname into the entryfield of the gui

defineColSpecs_cb(self, event=None)

source code 
callback that creates an input form with fields for the user to define the field specifications in column format. callback of a define/modify button.

defineIndSpecs_cb(self, event=None)

source code 
callback that creates an input form with fields for the user to define the field specifications in index format. callback of a define/modify button.

hide_widget_group(self, grouptype)

source code 
hides widgets of grouptype (either 'i' or 'c'). called by either column_cb or index_cb

show_widget_group(self, grouptype)

source code 
shows existing widgets of grouptype (either 'i' or 'c'). called by either column_cb or index_cb

createColumnWidgets(self)

source code 
adds widgets to self.idf and self.form useful for column specification format. called bycolumn_cb

createIndexWidgets(self)

source code 
adds widgets to self.idf and self.form useful to specify in index format. called by index_cb

column_cb(self, event=None)

source code 
callback of radiobutton to use column format pdb specifications

index_cb(self, event=None)

source code 
callback of radiobutton to use index format pdb specifications

guiCallback(self, event=None, *args, **kw)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

indexLabel(self)

source code 
creates a label that indexes each space-separated field

fileinScrolledText_cb(self, filename, event=None)

source code 
take a file and puts its text into the scrolled text box

dismiss_cb(self, event=None)

source code 
None

dismiss_smallform_cb(self, event=None)

source code 
None