mailr16540 - /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 - 20:01:
Author: bugman
Date: Wed May 30 20:01:03 2012
New Revision: 16540

URL: http://svn.gna.org/viewcvs/relax?rev=16540&view=rev
Log:
Fix for the GUI user functions - a call to update the parameters no longer 
wipes out the current value.

This is for ComboBox elements where a string has been input rather than one 
of the choices selected.


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=16540&r1=16539&r2=16540&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Wed May 30 20:01:03 2012
@@ -832,8 +832,11 @@
                 # Return as a failure.
                 return False
 
+            # Get the current value, for setting as the default.
+            val = self.uf_args[name].GetValue()
+
             # Update the GUI element.
-            self.UpdateChoices(name, combo_choices=choices, combo_data=data)
+            self.UpdateChoices(name, combo_choices=choices, combo_data=data, 
combo_default=val)
 
 
 




Related Messages


Powered by MHonArc, Updated Wed May 30 20:20:07 2012