mailr13817 - /branches/gui_testing/gui/pipe_editor.py


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

Header


Content

Posted by edward on July 21, 2011 - 19:40:
Author: bugman
Date: Thu Jul 21 19:40:55 2011
New Revision: 13817

URL: http://svn.gna.org/viewcvs/relax?rev=13817&view=rev
Log:
The ds.relax_gui data structure is initialised if absent when associating a 
pipe with a new tab.


Modified:
    branches/gui_testing/gui/pipe_editor.py

Modified: branches/gui_testing/gui/pipe_editor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/pipe_editor.py?rev=13817&r1=13816&r2=13817&view=diff
==============================================================================
--- branches/gui_testing/gui/pipe_editor.py (original)
+++ branches/gui_testing/gui/pipe_editor.py Thu Jul 21 19:40:55 2011
@@ -27,6 +27,7 @@
 import wx
 
 # relax module imports.
+from data import Relax_data_store; ds = Relax_data_store()
 from generic_fns.pipes import cdp_name, delete, get_type, pipe_names, switch
 from status import Status; status = Status()
 
@@ -244,6 +245,10 @@
         @type event:    wx event
         """
 
+        # Initialise the GUI data store object if needed.
+        if not hasattr(ds, 'relax_gui'):
+            self.gui.init_data()
+
         # The type.
         type = get_type(self.selected_pipe)
 




Related Messages


Powered by MHonArc, Updated Thu Jul 21 20:00:02 2011