mailr20048 - /branches/relax_disp/gui/wizards/peak_intensity.py


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

Header


Content

Posted by edward on June 11, 2013 - 18:39:
Author: bugman
Date: Tue Jun 11 18:39:40 2013
New Revision: 20048

URL: http://svn.gna.org/viewcvs/relax?rev=20048&view=rev
Log:
Partial fix for bug #20889 (https://gna.org/bugs/?20889).

The peak intensity wizard now detects when the spectrum ID argument of the 
first page is set to a
list.  The default value for all subsequent user functions is now set to the 
first element of that
list.


Modified:
    branches/relax_disp/gui/wizards/peak_intensity.py

Modified: branches/relax_disp/gui/wizards/peak_intensity.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/wizards/peak_intensity.py?rev=20048&r1=20047&r2=20048&view=diff
==============================================================================
--- branches/relax_disp/gui/wizards/peak_intensity.py (original)
+++ branches/relax_disp/gui/wizards/peak_intensity.py Tue Jun 11 18:39:40 2013
@@ -265,6 +265,10 @@
         # Set the spectrum ID.
         id = page.uf_args['spectrum_id'].GetValue()
 
+        # Handle list arguments.
+        if isinstance(id, list):
+            id = id[0]
+
         # Set the ID in the page.
         page = self.get_page(self.page_indices[page_key])
         if index == None:




Related Messages


Powered by MHonArc, Updated Tue Jun 11 19:00:02 2013