mailr19258 - /branches/relax_disp/user_functions/relax_disp.py


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

Header


Content

Posted by edward on March 27, 2013 - 16:11:
Author: bugman
Date: Wed Mar 27 16:11:26 2013
New Revision: 19258

URL: http://svn.gna.org/viewcvs/relax?rev=19258&view=rev
Log:
Improvements for the GUI representation of the relax_disp user functions.


Modified:
    branches/relax_disp/user_functions/relax_disp.py

Modified: branches/relax_disp/user_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/user_functions/relax_disp.py?rev=19258&r1=19257&r2=19258&view=diff
==============================================================================
--- branches/relax_disp/user_functions/relax_disp.py (original)
+++ branches/relax_disp/user_functions/relax_disp.py Wed Mar 27 16:11:26 2013
@@ -44,10 +44,20 @@
 uf.title_short = "R2eff calculation."
 uf.add_keyarg(
     name = "exp_type",
-    default = "cpmg",
+    default = "CPMG",
     py_type = "str",
     desc_short = "experiment type",
-    desc = "The relaxation dispersion experiment type, either 'cpmg' or 
'r1rho'."
+    desc = "The relaxation dispersion experiment type, either 'cpmg' or 
'r1rho'.",
+    wiz_element_type = "combo",
+    wiz_combo_choices = [
+        "CPMG",
+        "R1rho"
+    ],
+    wiz_combo_data = [
+        "cpmg",
+        "r1rho"
+    ],
+    wiz_read_only = True
 )
 uf.add_keyarg(
     name = "id",
@@ -91,7 +101,7 @@
 uf.desc[-1].add_paragraph("ANOTHER EXAMPLE FOR BATCH USE (FROM PEAK 
INTENSITY LISTS) WILL SOON BE ADDED.")
 uf.backend = relax_disp_obj._calc_r2eff
 uf.menu_text = "&calc_r2eff"
-uf.wizard_size = (800, 500)
+uf.wizard_size = (900, 600)
 
 
 # The relax_disp.cpmg_delayT user function.
@@ -164,7 +174,17 @@
     default = "cpmg",
     py_type = "str",
     desc_short = "experiment type",
-    desc = "The type of relaxation dispersion experiment performed."
+    desc = "The type of relaxation dispersion experiment performed.",
+    wiz_element_type = "combo",
+    wiz_combo_choices = [
+        "CPMG",
+        "R1rho"
+    ],
+    wiz_combo_data = [
+        "cpmg",
+        "r1rho"
+    ],
+    wiz_read_only = True
 )
 # Description.
 uf.desc.append(Desc_container())
@@ -176,7 +196,7 @@
 uf.desc[-1].add_prompt("relax> relax_disp.exp_type(exp_type='cpmg')")
 uf.backend = relax_disp_obj._exp_type
 uf.menu_text = "&exp_type"
-uf.wizard_size = (800, 500)
+uf.wizard_size = (800, 400)
 
 
 # The relax_disp.select_model user function.
@@ -235,6 +255,6 @@
 uf.backend = relax_disp_obj._select_model
 uf.menu_text = "&select_model"
 uf.gui_icon = "oxygen.actions.list-add"
-uf.wizard_height_desc = 300
-uf.wizard_size = (800, 500)
+uf.wizard_height_desc = 500
+uf.wizard_size = (1000, 700)
 uf.wizard_apply_button = False




Related Messages


Powered by MHonArc, Updated Wed Mar 27 16:20:02 2013