mailr12648 - /1.3/gui/user_functions/value.py


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

Header


Content

Posted by edward on March 01, 2011 - 15:52:
Author: bugman
Date: Tue Mar  1 15:52:19 2011
New Revision: 12648

URL: http://svn.gna.org/viewcvs/relax?rev=12648&view=rev
Log:
Modified the value.set() user function GUI element so that the parameter 
element is an input field.


Modified:
    1.3/gui/user_functions/value.py

Modified: 1.3/gui/user_functions/value.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/value.py?rev=12648&r1=12647&r2=12648&view=diff
==============================================================================
--- 1.3/gui/user_functions/value.py (original)
+++ 1.3/gui/user_functions/value.py Tue Mar  1 15:52:19 2011
@@ -74,7 +74,7 @@
         """
 
         # The parameter.
-        self.param = self.combo_box(sizer, "The parameter:", [])
+        self.param = self.input_field(sizer, "The parameter:")
 
         # The value.
         self.value = self.input_field(sizer, "The value:")
@@ -87,7 +87,7 @@
         """Execute the user function."""
 
         # The parameter and value.
-        param = 
gui_to_str(self.param.GetClientData(self.param.GetSelection()))
+        param = gui_to_str(self.param.GetValue())
         value = gui_to_str(self.value.GetValue())
 
         # The spin ID.
@@ -109,14 +109,14 @@
         return_data_desc = 
specific_fns.setup.get_specific_fn('return_data_desc', pipes.get_type(), 
raise_error=False)
 
         # Loop over the parameters.
-        for name in data_names(set='params'):
-            # Get the description.
-            desc = return_data_desc(name)
+        #for name in data_names(set='params'):
+        #    # Get the description.
+        #    desc = return_data_desc(name)
 
-            # No description.
-            if not desc:
-                desc = name
+        #    # No description.
+        #    if not desc:
+        #        desc = name
 
-            # Append the description.
-            self.param.Append(str_to_gui(desc), name)
+        #    # Append the description.
+        #    self.param.Append(str_to_gui(desc), name)
 




Related Messages


Powered by MHonArc, Updated Tue Mar 01 17:20:02 2011