Author: bugman Date: Sat Aug 6 22:42:54 2011 New Revision: 14229 URL: http://svn.gna.org/viewcvs/relax?rev=14229&view=rev Log: The NOE auto-analysis tab is now complete deactivated with the execution lock. Modified: branches/gui_testing/gui/analyses/auto_noe.py Modified: branches/gui_testing/gui/analyses/auto_noe.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_noe.py?rev=14229&r1=14228&r2=14229&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/auto_noe.py (original) +++ branches/gui_testing/gui/analyses/auto_noe.py Sat Aug 6 22:42:54 2011 @@ -117,9 +117,26 @@ # 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_noe, 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.button_exec_relax.Enable, enable) def assemble_data(self):