mailr14684 - /1.3/gui/user_functions/residue.py


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

Header


Content

Posted by edward on September 19, 2011 - 10:49:
Author: bugman
Date: Mon Sep 19 10:49:30 2011
New Revision: 14684

URL: http://svn.gna.org/viewcvs/relax?rev=14684&view=rev
Log:
Fixes for the residue user function GUI pages for when default values are 
sent to the page.

This fixes the user functions in the spin viewer window.


Modified:
    1.3/gui/user_functions/residue.py

Modified: 1.3/gui/user_functions/residue.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/residue.py?rev=14684&r1=14683&r2=14684&view=diff
==============================================================================
--- 1.3/gui/user_functions/residue.py (original)
+++ 1.3/gui/user_functions/residue.py Mon Sep 19 10:49:30 2011
@@ -61,7 +61,7 @@
 
         # Default molecule name.
         if mol_name:
-            page.mol.SetValue(str_to_gui(mol_name))
+            page.mol_name.SetValue(str_to_gui(mol_name))
 
         # Execute the wizard.
         wizard.run()
@@ -83,11 +83,13 @@
 
         # Default molecule name.
         if mol_name:
-            page.mol.SetValue(str_to_gui(mol_name))
+            page.mol_name.SetValue(str_to_gui(mol_name))
 
         # Default residue.
-        if res_num or res_name:
-            page.res.SetValue(str_to_gui("%s %s" % (res_num, res_name)))
+        if res_name:
+            page.res_name.SetValue(str_to_gui(res_name))
+        if res_num:
+            page.res_num.SetValue(str_to_gui(res_num))
 
         # Execute the wizard.
         wizard.run()




Related Messages


Powered by MHonArc, Updated Mon Sep 19 11:00:02 2011