Author: bugman Date: Tue Oct 29 10:26:29 2013 New Revision: 21294 URL: http://svn.gna.org/viewcvs/relax?rev=21294&view=rev Log: The dispersion analysis GUI element now uses the float GUI element for the insignificance level. This makes sure that the user can only enter a number. Modified: branches/relax_disp/gui/analyses/auto_relax_disp.py Modified: branches/relax_disp/gui/analyses/auto_relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/analyses/auto_relax_disp.py?rev=21294&r1=21293&r2=21294&view=diff ============================================================================== --- branches/relax_disp/gui/analyses/auto_relax_disp.py (original) +++ branches/relax_disp/gui/analyses/auto_relax_disp.py Tue Oct 29 10:26:29 2013 @@ -31,6 +31,7 @@ from graphics import ANALYSIS_IMAGE_PATH, fetch_icon from gui.analyses.base import Base_analysis from gui.analyses.elements.bool_element import Boolean_ctrl +from gui.analyses.elements.float_element import Float_ctrl from gui.analyses.elements.spin_element import Spin_ctrl from gui.analyses.elements.text_element import Text_ctrl from gui.analyses.elements.model_list import Model_list @@ -366,7 +367,7 @@ # The insignificance cutoff. tooltip = "The %s/%s value in rad/s by which to judge insignificance. If the maximum difference between two points on all dispersion curves for a spin is less than this value, that spin will be deselected. This does not affect the '%s' model. Set this value to 0.0 to use all data." % (r2eff, r1rho, MODEL_NOREX) - self.insignificance = Text_ctrl(box, self, text="Insignificance level:", default="1.0", tooltip=tooltip, button=False, width_text=self.width_text, width_button=self.width_button, spacer=self.spacer_horizontal) + self.insignificance = Float_ctrl(box, self, text="Insignificance level:", default=1.0, tooltip=tooltip, width_text=self.width_text, width_button=self.width_button, spacer=self.spacer_horizontal) # Stretchable spacing (with a minimal space). box.AddSpacer(30)