Преглед изворни кода

wxGUI: cosmetics in aboutwindow

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41837 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa пре 15 година
родитељ
комит
676ecdcbac
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 3
      gui/wxpython/gui_modules/gmodeler.py
  2. 0 1
      gui/wxpython/gui_modules/help.py

+ 4 - 3
gui/wxpython/gui_modules/gmodeler.py

@@ -27,6 +27,7 @@ import time
 import traceback
 import getpass
 import stat
+import textwrap
 
 try:
     import xml.etree.ElementTree as etree
@@ -552,9 +553,9 @@ if __name__ == "__main__":
         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)
         

+ 0 - 1
gui/wxpython/gui_modules/help.py

@@ -26,7 +26,6 @@ except ImportError:
 #    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