Author: bugman Date: Fri Jul 8 11:46:17 2011 New Revision: 13525 URL: http://svn.gna.org/viewcvs/relax?rev=13525&view=rev Log: The value user function pages now use the new documentation system. Modified: branches/gui_testing/gui/user_functions/value.py Modified: branches/gui_testing/gui/user_functions/value.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/value.py?rev=13525&r1=13524&r2=13525&view=diff ============================================================================== --- branches/gui_testing/gui/user_functions/value.py (original) +++ branches/gui_testing/gui/user_functions/value.py Fri Jul 8 11:46:17 2011 @@ -49,7 +49,7 @@ """ # Execute the wizard. - wizard = Wiz_window(size_x=800, size_y=600, title='Set parameter values') + wizard = Wiz_window(size_x=800, size_y=600, title=self.get_title('value', 'set')) page = Set_page(wizard, self.gui, self.interpreter) wizard.add_page(page) wizard.run() @@ -61,9 +61,7 @@ # Some class variables. image_path = WIZARD_IMAGE_PATH + 'value' + sep + 'value.png' - main_text = 'This dialog allows you to set spin specific data values.' - title = 'Value setting' - + uf_path = ['value', 'set'] def add_contents(self, sizer): """Add the sequence specific GUI elements. @@ -73,13 +71,13 @@ """ # The parameter. - self.param = self.input_field(sizer, "The parameter:") + self.param = self.input_field(sizer, "The parameter:", tooltip=self.uf._doc_args_dict['param']) # The value. - self.value = self.input_field(sizer, "The value:") + self.val = self.input_field(sizer, "The value:", tooltip=self.uf._doc_args_dict['val']) # 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.") + self.spin_id = self.spin_id_element(sizer, "Restrict data loading to certain spins:") def on_display(self): @@ -107,10 +105,10 @@ # The parameter and value. param = gui_to_str(self.param.GetValue()) - value = gui_to_str(self.value.GetValue()) + val = gui_to_str(self.val.GetValue()) # The spin ID. spin_id = gui_to_str(self.spin_id.GetValue()) # Set the value. - self.interpreter.value.set(val=value, param=param, spin_id=spin_id) + self.interpreter.value.set(val=val, param=param, spin_id=spin_id)