mailr14230 - /branches/gui_testing/gui/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 August 06, 2011 - 22:45:
Author: bugman
Date: Sat Aug  6 22:45:44 2011
New Revision: 14230

URL: http://svn.gna.org/viewcvs/relax?rev=14230&view=rev
Log:
The R1 and R2 curve-fitting tabs are now also completely deactivated by the 
execution lock.


Modified:
    branches/gui_testing/gui/analyses/auto_rx_base.py

Modified: branches/gui_testing/gui/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_rx_base.py?rev=14230&r1=14229&r2=14230&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_rx_base.py (original)
+++ branches/gui_testing/gui/analyses/auto_rx_base.py Sat Aug  6 22:45:44 2011
@@ -118,9 +118,28 @@
 
         # Register the method for updating the spin count for the completion 
of user functions.
         status.observers.gui_uf.register(self.data.pipe_name, 
self.update_spin_count)
+        status.observers.exec_lock.register(self.data.pipe_name, 
self.activate)
 
         # Execute the base class method to build the panel.
         super(Auto_rx, self).__init__(parent, id=id, pos=pos, size=size, 
style=style, name=name)
+
+
+    def activate(self):
+        """Activate or deactivate certain elements of the analysis in 
response to the execution lock."""
+
+        # Flag for enabling or disabling the elements.
+        enable = False
+        if not status.exec_lock.locked():
+            enable = True
+
+        # Activate or deactivate the elements.
+        wx.CallAfter(self.field_nmr_frq.Enable, enable)
+        wx.CallAfter(self.field_results_dir.Enable, enable)
+        wx.CallAfter(self.field_spin_system.Enable, enable)
+        wx.CallAfter(self.peak_intensity.Enable, enable)
+        wx.CallAfter(self.grid_inc.Enable, enable)
+        wx.CallAfter(self.mc_sim_num.Enable, enable)
+        wx.CallAfter(self.button_exec_relax.Enable, enable)
 
 
     def assemble_data(self):




Related Messages


Powered by MHonArc, Updated Sat Aug 06 23:20:01 2011