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':


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to