Author: bugman Date: Mon Aug 1 15:59:09 2011 New Revision: 14034 URL: http://svn.gna.org/viewcvs/relax?rev=14034&view=rev Log: Added a new analysis method current_analysis_type() for determining the current analysis type. Modified: branches/gui_testing/gui/analyses/__init__.py Modified: branches/gui_testing/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=14034&r1=14033&r2=14034&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/__init__.py (original) +++ branches/gui_testing/gui/analyses/__init__.py Mon Aug 1 15:59:09 2011 @@ -128,6 +128,21 @@ return ds.relax_gui.analyses[self._current].analysis_name + def current_analysis_type(self): + """Return the type of the current analysis. + + @return: The type of the current analysis. + @rtype: str + """ + + # No current page. + if self._current == None: + return + + # Return the name. + return ds.relax_gui.analyses[self._current].analysis_type + + def delete_all(self): """Remove all analyses."""