mailr16548 - /branches/uf_redesign/gui/uf_objects.py


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

Header


Content

Posted by edward on May 30, 2012 - 21:16:
Author: bugman
Date: Wed May 30 21:16:24 2012
New Revision: 16548

URL: http://svn.gna.org/viewcvs/relax?rev=16548&view=rev
Log:
The GUI user function page update_args() method now has a docstring and 
returns True when successful.


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16548&r1=16547&r2=16548&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Wed May 30 21:16:24 2012
@@ -805,6 +805,12 @@
 
 
     def update_args(self):
+        """Update all the argument ComboBox choices.
+
+        @return:    The status of the update - False if a RelaxError occurs, 
True otherwise.
+        @rtype:     bool
+        """
+
         # Loop over the arguments.
         for i in range(len(self.uf_data.kargs)):
             # The argument name.
@@ -844,6 +850,9 @@
             # Update the GUI element.
             self.UpdateChoices(name, combo_choices=choices, combo_data=data, 
combo_default=val)
 
+        # Successful update.
+        return True
+
 
 
 class Uf_storage(dict):




Related Messages


Powered by MHonArc, Updated Wed May 30 21:40:01 2012