Author: bugman
Date: Fri Jan 30 15:40:38 2015
New Revision: 27392
URL: http://svn.gna.org/viewcvs/relax?rev=27392&view=rev
Log:
Important formatting improvement for the description in the GUI user function
windows.
Previously lists, item lists, and prompt items were spaced with one empty line
at the top and two at
the bottom. The two empty lines at the bottom was an accident caused by how
the list text elements
were built up. Now the final newline character is stripped so that the top and
bottom of the lists
only consist of one empty line. The change can give a lot more room in the GUI
window.
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=27392&r1=27391&r2=27392&view=diff
==============================================================================
--- trunk/gui/uf_objects.py (original)
+++ trunk/gui/uf_objects.py Fri Jan 30 15:40:38 2015
@@ -1,6 +1,6 @@
###############################################################################
# #
-# Copyright (C) 2012-2014 Edward d'Auvergne #
+# Copyright (C) 2012-2015 Edward d'Auvergne #
# Copyright (C) 2014 Troels E. Linnet #
# #
# This file is part of the program relax (http://www.nmr-relax.com). #
@@ -706,6 +706,9 @@
for j in range(len(element)):
text += " - %s\n" % element[j]
+ # Remove the last newline character.
+ text = text[:-1]
+
# Format the item lists.
elif type == 'item list':
# Loop over the list elements.
@@ -716,10 +719,16 @@
else:
text += " %s: %s\n" % (element[j][0],
element[j][1])
+ # Remove the last newline character.
+ text = text[:-1]
+
# Format prompt items.
elif type == 'prompt':
for j in range(len(element)):
text += "%s\n" % element[j]
+
+ # Remove the last newline character.
+ text = text[:-1]
# The text object.
text_obj = wx.StaticText(panel, -1, text,
style=wx.TE_MULTILINE)
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits