mailr10552 - /branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py


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

Header


Content

Posted by edward on January 28, 2010 - 19:34:
Author: bugman
Date: Thu Jan 28 19:33:59 2010
New Revision: 10552

URL: http://svn.gna.org/viewcvs/relax?rev=10552&view=rev
Log:
The relax data store is now only being referenced and not added to.


Modified:
    branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py

Modified: branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py?rev=10552&r1=10551&r2=10552&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py Thu Jan 28 19:33:59 
2010
@@ -48,20 +48,22 @@
     bitmap = None
     label = None
 
-    def __init__(self, gui, notebook):
+    def __init__(self, gui, notebook, hardcoded_index=None):
         """Build the automatic R1 and R2 analysis GUI frame elements.
 
-        @param gui:         The main GUI class.
-        @type gui:          gui_bieri.relax_gui.Main instance
-        @param notebook:    The notebook to pack this frame into.
-        @type notebook:     wx.Notebook instance
+        @param gui:                 The main GUI class.
+        @type gui:                  gui_bieri.relax_gui.Main instance
+        @param notebook:            The notebook to pack this frame into.
+        @type notebook:             wx.Notebook instance
+        @keyword hardcoded_index:   Kludge for the current GUI layout.
+        @type hardcoded_index:      int
         """
 
         # Store the main class.
         self.gui = gui
 
-        # Generate a storage container in the relax data store, and alias it 
for easy access.
-        self.data = ds.relax_gui.analyses.add(self.analysis_type)
+        # Alias the storage container in the relax data store.
+        self.data = ds.relax_gui.analyses[hardcoded_index]
 
         # The parent GUI element for this class.
         self.parent = wx.Panel(notebook, -1)




Related Messages


Powered by MHonArc, Updated Thu Jan 28 19:40:02 2010