mailr13299 - /branches/gui_testing/gui/analyses/__init__.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 29, 2011 - 15:32:
Author: bugman
Date: Wed Jun 29 15:32:43 2011
New Revision: 13299

URL: http://svn.gna.org/viewcvs/relax?rev=13299&view=rev
Log:
The analysis page list structure is now private.


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=13299&r1=13298&r2=13299&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Wed Jun 29 15:32:43 2011
@@ -71,7 +71,7 @@
         self._num_analyses = 0
 
         # The analyses page objects.
-        self.analyses = []
+        self._analyses = []
 
 
     def analysis_data_loop(self):
@@ -95,7 +95,7 @@
 
         # Loop over the analyses.
         for i in range(self._num_analyses):
-            yield self.analyses[i]
+            yield self._analyses[i]
 
 
     def current_analysis_name(self):
@@ -110,7 +110,7 @@
             return
 
         # Return the name.
-        return self.analyses[self._current]
+        return self._analyses[self._current]
 
 
     def delete_all(self):
@@ -136,7 +136,7 @@
         self.notebook.DeletePage(index)
 
         # Delete the tab object.
-        self.analyses.pop(index)
+        self._analyses.pop(index)
 
         # Decrement the number of analyses.
         self._num_analyses -= 1
@@ -316,10 +316,10 @@
         analysis = classes[analysis_type]
 
         # Initialise the class and append it to the analysis window object.
-        self.analyses.append(analysis(gui=self.gui, notebook=self.notebook, 
analysis_name=analysis_name, pipe_name=pipe_name, data_index=index))
+        self._analyses.append(analysis(gui=self.gui, notebook=self.notebook, 
analysis_name=analysis_name, pipe_name=pipe_name, data_index=index))
 
         # Add to the notebook.
-        self.notebook.AddPage(self.analyses[-1].parent, analysis_name)
+        self.notebook.AddPage(self._analyses[-1].parent, analysis_name)
 
         # Increment the number of analyses.
         self._num_analyses += 1




Related Messages


Powered by MHonArc, Updated Wed Jun 29 15:40:02 2011