Author: bugman Date: Tue Apr 17 11:06:57 2012 New Revision: 15745 URL: http://svn.gna.org/viewcvs/relax?rev=15745&view=rev Log: Added debugging print outs to the delete_all() analysis method. Modified: 1.3/gui/analyses/__init__.py Modified: 1.3/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/__init__.py?rev=15745&r1=15744&r2=15745&view=diff ============================================================================== --- 1.3/gui/analyses/__init__.py (original) +++ 1.3/gui/analyses/__init__.py Tue Apr 17 11:06:57 2012 @@ -162,15 +162,28 @@ def delete_all(self): """Remove all analyses.""" + # Debugging set up. + if status.debug: + fn_name = sys._getframe().f_code.co_name + mod_name = inspect.getmodule(inspect.stack()[1][0]).__name__ + class_name = self.__class__.__name__ + full_name = "%s.%s.%s" % (mod_name, class_name, fn_name) + print("\n\n") + print("debug> %s: Deleting all analyses." % full_name) + # Delete the current tabs. while self._num_analyses: # Flush all pending events (bug fix for MS Windows). wx.Yield() # Remove the last analysis, until there is nothing left. + if status.debug: + print("debug> %s: Deleting the analysis at index %s." % (full_name, self._num_analyses-1)) self.delete_analysis(self._num_analyses-1) # Notify the observers of the change. + if status.debug: + print("debug> %s: All analyses now deleted." % full_name) status.observers.gui_analysis.notify()