Author: bugman Date: Sat Aug 6 21:00:49 2011 New Revision: 14213 URL: http://svn.gna.org/viewcvs/relax?rev=14213&view=rev Log: The model-free model fields are now activated/deactivated with the execution lock. Modified: branches/gui_testing/gui/analyses/auto_model_free.py Modified: branches/gui_testing/gui/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_model_free.py?rev=14213&r1=14212&r2=14213&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/auto_model_free.py (original) +++ branches/gui_testing/gui/analyses/auto_model_free.py Sat Aug 6 21:00:49 2011 @@ -256,6 +256,8 @@ enable = True # Activate or deactivate the elements. + self.local_tm_model_field.Enable(enable) + self.mf_model_field.Enable(enable) self.grid_inc.Enable(enable) self.mc_sim_num.Enable(enable) self.max_iter.Enable(enable) @@ -817,6 +819,18 @@ box.Add(sizer, 0, wx.ALL|wx.EXPAND, 0) + def Enable(self, enable=True): + """Enable or disable the window for user input. + + @keyword enable: The flag specifying if the control should be enabled or disabled. + @type enable: bool + """ + + # Call the control and button's method. + self.field.Enable(enable) + self.button.Enable(enable) + + def GetValue(self): """Return the list of model-free models.