[GRASS-SVN] r41839 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 13 09:28:42 EDT 2010


Author: martinl
Date: 2010-04-13 09:28:41 -0400 (Tue, 13 Apr 2010)
New Revision: 41839

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
Log:
wxGUI: cosmetics in aboutwindow
(merge r41837 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2010-04-13 13:26:37 UTC (rev 41838)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2010-04-13 13:28:41 UTC (rev 41839)
@@ -27,6 +27,7 @@
 import traceback
 import getpass
 import stat
+import textwrap
 
 try:
     import xml.etree.ElementTree as etree
@@ -552,9 +553,9 @@
         info.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
         info.SetName(_('wxGUI Graphical Modeler'))
         info.SetWebSite('http://grass.osgeo.org')
-        info.SetDescription(_('(C) 2010 by the GRASS Development Team\n\n'
-                              'This program is free software under the GNU General Public License'
-                              '(>=v2). Read the file COPYING that comes with GRASS for details.'))
+        info.SetDescription(_('(C) 2010 by the GRASS Development Team\n\n') + 
+                            '\n'.join(textwrap.wrap(_('This program is free software under the GNU General Public License'
+                                                      '(>=v2). Read the file COPYING that comes with GRASS for details.'), 100)))
         
         wx.AboutBox(info)
         

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py	2010-04-13 13:26:37 UTC (rev 41838)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py	2010-04-13 13:28:41 UTC (rev 41839)
@@ -26,7 +26,6 @@
 #    import wx.lib.hyperlink as hl
 import wx.lib.flatnotebook as FN
 import  wx.lib.scrolledpanel as scrolled
-from wx.lib.wordwrap import wordwrap
 
 import menudata
 import gcmd



More information about the grass-commit mailing list