mailr16756 - /branches/uf_redesign/gui/relax_gui.py


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

Header


Content

Posted by edward on June 08, 2012 - 12:22:
Author: bugman
Date: Fri Jun  8 12:22:24 2012
New Revision: 16756

URL: http://svn.gna.org/viewcvs/relax?rev=16756&view=rev
Log:
Fix for the GUI for when a script is launched from the command line.

The analysis tabs are now updated at the end of the __init__() method, and 
the ds.relax_gui data
store object is no longer overwritten if it already exists.


Modified:
    branches/uf_redesign/gui/relax_gui.py

Modified: branches/uf_redesign/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/relax_gui.py?rev=16756&r1=16755&r2=16756&view=diff
==============================================================================
--- branches/uf_redesign/gui/relax_gui.py (original)
+++ branches/uf_redesign/gui/relax_gui.py Fri Jun  8 12:22:24 2012
@@ -170,6 +170,9 @@
         status.observers.result_file.register('gui', 
self.show_results_viewer_no_warn)
         status.observers.exec_lock.register('gui', self.enable)
 
+        # Assume a script has been run and there is data in the store.
+        self.analysis.load_from_store()
+
 
     def about_gui(self, event=None):
         """The about message for the relax GUI.
@@ -392,8 +395,9 @@
         # Temporary data:  the save file.
         self.save_file = None
 
-        # Add the GUI object to the data store.
-        ds.relax_gui = Gui()
+        # Add the GUI object to the data store, if not present.
+        if not hasattr(ds, 'relax_gui'):
+            ds.relax_gui = Gui()
 
 
     def free_file_format_settings(self, event=None):




Related Messages


Powered by MHonArc, Updated Fri Jun 08 12:40:01 2012