mailr10678 - /branches/bieri_gui/gui_bieri/relax_gui.py


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

Header


Content

Posted by edward on February 06, 2010 - 01:41:
Author: bugman
Date: Sat Feb  6 01:41:35 2010
New Revision: 10678

URL: http://svn.gna.org/viewcvs/relax?rev=10678&view=rev
Log:
The exit printout width is now 100 characters (except for on Windows where it 
is 80).


Modified:
    branches/bieri_gui/gui_bieri/relax_gui.py

Modified: branches/bieri_gui/gui_bieri/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=10678&r1=10677&r2=10678&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/relax_gui.py (original)
+++ branches/bieri_gui/gui_bieri/relax_gui.py Sat Feb  6 01:41:35 2010
@@ -26,6 +26,7 @@
 
 # Python module imports.
 from os import getcwd, mkdir, sep
+import platform
 from re import search
 from string import lower, lowercase, replace
 from textwrap import wrap
@@ -855,14 +856,20 @@
             # The relax information box.
             info = Info_box()
 
+            # The width of the printout.
+            if platform.uname()[0] in ['Windows', 'Microsoft']:
+                width = 80
+            else:
+                width = 100
+
             # A print out.
             text = "\n\nThank you for citing:\n"
             text = text + "\nrelaxGUI\n========\n\nBieri et al., in 
progress."
             text = text + "\n\n\nrelax\n=====\n\n"
-            for line in wrap(info.bib['dAuvergneGooley08a'].cite_short(), 
80):
+            for line in wrap(info.bib['dAuvergneGooley08a'].cite_short(), 
width):
                 text = text + line + '\n'
             text = text + '\n\n'
-            for line in wrap(info.bib['dAuvergneGooley08b'].cite_short(), 
80):
+            for line in wrap(info.bib['dAuvergneGooley08b'].cite_short(), 
width):
                 text = text + line + '\n'
             text = text + '\n'
             print(text)




Related Messages


Powered by MHonArc, Updated Sat Feb 06 02:00:02 2010