mailr19733 - /trunk/gui/uf_objects.py


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

Header


Content

Posted by edward on May 24, 2013 - 16:35:
Author: bugman
Date: Fri May 24 16:35:06 2013
New Revision: 19733

URL: http://svn.gna.org/viewcvs/relax?rev=19733&view=rev
Log:
The user function 'prompt' description elements as now displayed in the GUI 
wizard page.


Modified:
    trunk/gui/uf_objects.py

Modified: trunk/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/uf_objects.py?rev=19733&r1=19732&r2=19733&view=diff
==============================================================================
--- trunk/gui/uf_objects.py (original)
+++ trunk/gui/uf_objects.py Fri May 24 16:35:06 2013
@@ -716,6 +716,11 @@
                             else:
                                 text += "    %s:  %s\n" % (element[j][0], 
element[j][1])
 
+                    # Format prompt items.
+                    elif type == 'prompt':
+                        for j in range(len(element)):
+                            text += "%s\n" % element[j]
+
                     # The text object.
                     text_obj = wx.StaticText(panel, -1, text, 
style=wx.TE_MULTILINE)
 
@@ -724,7 +729,7 @@
                         text_obj.SetFont(font.subtitle)
                     elif type == 'paragraph':
                         text_obj.SetFont(font.normal)
-                    elif type in ['table', 'verbatim']:
+                    elif type in ['table', 'verbatim', 'prompt']:
                         text_obj.SetFont(font.modern_small)
                     else:
                         text_obj.SetFont(font.normal)




Related Messages


Powered by MHonArc, Updated Fri May 24 16:40:02 2013