Author: bugman Date: Thu May 31 15:54:51 2012 New Revision: 16562 URL: http://svn.gna.org/viewcvs/relax?rev=16562&view=rev Log: Converted the align_tensor.display user function to the new Desc_container design. This is to test out the list generation. Modified: branches/uf_redesign/user_functions/align_tensor.py Modified: branches/uf_redesign/user_functions/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/align_tensor.py?rev=16562&r1=16561&r2=16562&view=diff ============================================================================== --- branches/uf_redesign/user_functions/align_tensor.py (original) +++ branches/uf_redesign/user_functions/align_tensor.py Thu May 31 15:54:51 2012 @@ -133,18 +133,14 @@ wiz_read_only = True, can_be_none = True ) -uf.desc = """ -This will show all information relating to the alignment tensor, including the different tensor forms: - - - Probability tensor. - - Saupe order matrix. - - Alignment tensor. - - Magnetic susceptibility tensor. - -All possible tensor parameters and information will also be shown (Eigensystem, GDO, Aa, Ar, R, eta, chi_ax, chi_rh, etc). The printout will be extensive. - -If no tensor is specified, all tensors will be displayed. -""" +uf.desc.append(Desc_container()) +uf.desc[-1].add_paragraph("This will show all information relating to the alignment tensor, including the different tensor forms:") +uf.desc[-1].add_list_element("Probability tensor.") +uf.desc[-1].add_list_element("Saupe order matrix.") +uf.desc[-1].add_list_element("Alignment tensor.") +uf.desc[-1].add_list_element("Magnetic susceptibility tensor.") +uf.desc[-1].add_paragraph("All possible tensor parameters and information will also be shown (Eigensystem, GDO, Aa, Ar, R, eta, chi_ax, chi_rh, etc). The printout will be extensive.") +uf.desc[-1].add_paragraph("If no tensor is specified, all tensors will be displayed.") uf.backend = align_tensor.display uf.menu_text = "dis&play" uf.gui_icon = "oxygen.actions.document-preview"