Author: bugman Date: Tue May 8 19:08:08 2012 New Revision: 16119 URL: http://svn.gna.org/viewcvs/relax?rev=16119&view=rev Log: The simple Value wizard page element default for an integer is now a wx.SpinCtrl. If the element_type arg is set to 'default' and the data type is integer, then a wx.SpinCtrl will be used. Modified: branches/uf_redesign/gui/wizard_elements.py Modified: branches/uf_redesign/gui/wizard_elements.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16119&r1=16118&r2=16119&view=diff ============================================================================== --- branches/uf_redesign/gui/wizard_elements.py (original) +++ branches/uf_redesign/gui/wizard_elements.py Tue May 8 19:08:08 2012 @@ -1167,9 +1167,15 @@ @type read_only: bool """ - # Set the default to a TextCtrl. + # Set the default. if element_type == 'default': - element_type = 'text' + # Set the default to a SpinCtrl for integers. + if value_type == 'int': + element_type = 'spin' + + # Set the default to a TextCtrl for all other types. + else: + element_type = 'text' # Check the spinner. if element_type == "spin" and value_type != 'int':