mailr13507 - /branches/gui_testing/gui/user_functions/sequence.py


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

Header


Content

Posted by edward on July 07, 2011 - 18:58:
Author: bugman
Date: Thu Jul  7 18:58:45 2011
New Revision: 13507

URL: http://svn.gna.org/viewcvs/relax?rev=13507&view=rev
Log:
Updated the sequence.read user function page to use the user function 
documentation.


Modified:
    branches/gui_testing/gui/user_functions/sequence.py

Modified: branches/gui_testing/gui/user_functions/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/sequence.py?rev=13507&r1=13506&r2=13507&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/sequence.py (original)
+++ branches/gui_testing/gui/user_functions/sequence.py Thu Jul  7 18:58:45 
2011
@@ -48,7 +48,7 @@
         """
 
         # Execute the wizard.
-        wizard = Wiz_window(size_x=800, size_y=600, title='Read the spin 
sequence from a file')
+        wizard = Wiz_window(size_x=900, size_y=700, 
title=self.get_title('sequence', 'read'))
         page = Read_page(wizard, self.gui, self.interpreter)
         wizard.add_page(page)
         wizard.run()
@@ -60,8 +60,7 @@
 
     # Some class variables.
     image_path = WIZARD_IMAGE_PATH + 'sequence.png'
-    main_text = 'This dialog allows you to read the molecule, residue, and 
spin information from a file.'
-    title = 'Sequence reading'
+    uf_path = ['sequence', 'read']
 
 
     def add_contents(self, sizer):
@@ -72,13 +71,13 @@
         """
 
         # Add a file selection.
-        self.file = self.file_selection(sizer, "The sequence file:", 
title="Sequence file selection")
+        self.file = self.file_selection(sizer, "The sequence file:", 
title="Sequence file selection", tooltip=self.uf._doc_args_dict['file'])
+
+        # The spin ID restriction.
+        self.spin_id = self.spin_id_element(sizer, "Restrict data loading to 
certain spins:")
 
         # The parameter file settings.
         self.free_file_format(sizer)
-
-        # The spin ID restriction.
-        self.spin_id = self.input_field(sizer, "Restrict data loading to 
certain spins:", tooltip="This must be a valid spin ID.  Multiple spins can 
be selected using ranges, the '|' operator, residue ranges, etc.")
 
 
     def on_execute(self):




Related Messages


Powered by MHonArc, Updated Thu Jul 07 20:00:02 2011