mailr16095 - /branches/uf_redesign/gui/wizard_elements.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on May 08, 2012 - 14:47:
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':




Related Messages


Powered by MHonArc, Updated Tue May 08 15:20:02 2012