mailr13377 - /branches/gui_testing/gui/user_functions/base.py


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

Header


Content

Posted by edward on July 01, 2011 - 17:01:
Author: bugman
Date: Fri Jul  1 17:01:31 2011
New Revision: 13377

URL: http://svn.gna.org/viewcvs/relax?rev=13377&view=rev
Log:
The user function docstring titles are now used in the user function windows.


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

Modified: branches/gui_testing/gui/user_functions/base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/base.py?rev=13377&r1=13376&r2=13377&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/base.py (original)
+++ branches/gui_testing/gui/user_functions/base.py Fri Jul  1 17:01:31 2011
@@ -80,9 +80,12 @@
             else:
                 uf = getattr(uf_class, self.uf_path[1])
 
+            # Set the user function title.
+            title = uf._doc_title
+
             # Set the main text to the description doc.
             if hasattr(uf, '_doc_desc'):
-                self.main_text = self._format_text(uf._doc_desc)
+                self.main_text = title + '\n\n' + 
self._format_text(uf._doc_desc)
 
                 # Remove trailing newlines.
                 if self.main_text[-1] == '\n':




Related Messages


Powered by MHonArc, Updated Fri Jul 01 17:20:01 2011