Package nMOLDYN :: Package GUI :: Module AnalysisDialog :: Class AnalysisDialog |
[hide private]
[frames] | no frames]

# Class AnalysisDialog

source code

    Widgets.Toplevel --+
                       |
                      AnalysisDialog

Builds the dialog for nMOLDYN analysis.

Instance Methods | [hide private]
__init__(self, parent, analysis, trajectory) The constructor. | source code
body(self, master) Create dialog body. | source code
buttonbox(self) Add standard button box. | source code
ok(self, event=None, runMode='run') | source code
cancel(self, event=None) | source code
validate(self, runMode) | source code
apply(self, runMode) | source code
estimateAnalysis(self) Estimates the time taken by the analysis directly from the GUI. | source code
saveAnalysis(self) Saves a python script of the analysis that can be run independantly of the GUI. | source code
runAnalysis(self) Runs the analysis directly from the GUI. | source code
saveAndRunAnalysis(self) This method is called when the user presses the 'Save and Run' button of an analysis dialog. | source code
widgetsState(self, widget, state=DISABLED) This method is launched when an analysis is run from the GUI. | source code

Method Details | [hide private]

### __init__(self, parent, analysis, trajectory) (Constructor) | source code
The constructor. Parameters: `parent` - the parent widget. `analysis` (a class object of one of the nMOLDYN.Analysis subclasses.) - the analysis to setup. `trajectory` (instance of MMTK.Trajectory.Trajectory class) - the loaded trajectory.

### body(self, master) | source code
Create dialog body. Return widget that should have initial focus.

### saveAndRunAnalysis(self) | source code
This method is called when the user presses the 'Save and Run' button of an analysis dialog. It saves a python script of the analysis and run the analysis directly from the GUI.

### widgetsState(self, widget, state=DISABLED) | source code
This method is launched when an analysis is run from the GUI. Il will disable all the widgets of the analysis dialog.