Author: bugman
Date: Tue May  8 14:47:17 2012
New Revision: 16095

URL: http://svn.gna.org/viewcvs/relax?rev=16095&view=rev
Log:
Fix for the SetValue() methods of the sequence GUI wizard page GUI elements.

The value of None should be expected!


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=16095&r1=16094&r2=16095&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Tue May  8 14:47:17 2012
@@ -889,8 +889,12 @@
         """Set up the list values.
 
         @param values:  The list of values to add to the list.
-        @type values:   list of str
-        """
+        @type values:   list of str or None
+        """
+
+        # No value.
+        if values == None:
+            return
 
         # Loop over the entries.
         for i in range(len(values)):
@@ -1067,8 +1071,12 @@
         """Set up the list of lists values.
 
         @param values:  The list of lists of values to add to the list.
-        @type values:   list of lists of str
-        """
+        @type values:   list of lists of str or None
+        """
+
+        # No value.
+        if values == None:
+            return
 
         # Loop over the entries.
         for i in range(len(values)):
@@ -1326,8 +1334,12 @@
         """Special method for setting the value of the GUI element.
 
         @param value:   The value to set.
-        @type value:    list of str
-        """
+        @type value:    list of str or None
+        """
+
+        # No value.
+        if values == None:
+            return
 
         # Convert and set the value for a TextCtrl.
         if self.element_type == 'text':


_______________________________________________
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