[GRASS-SVN] r30622 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 18 13:33:57 EDT 2008


Author: martinl
Date: 2008-03-18 13:33:57 -0400 (Tue, 18 Mar 2008)
New Revision: 30622

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: (menuform) Fixing valid range label (GUI crash)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-03-18 15:54:11 UTC (rev 30621)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-03-18 17:33:57 UTC (rev 30622)
@@ -996,8 +996,8 @@
                 else:
                     if len(valuelist) == 1: # -> textctrl
                         txt = wx.StaticText(parent=which_panel,
-                                            label = "%s. %s=%s" (title, _('Valid range'),
-                                                                 str(valuelist).strip("[]'") + ':'))
+                                            label = "%s. %s %s" % (title, _('Valid range'),
+                                                                   str(valuelist[0]) + ':'))
                         which_sizer.Add(item=txt, proportion=0,
                                         flag=wx.ADJUST_MINSIZE | wx.TOP | wx.RIGHT | wx.LEFT, border=5)
 



More information about the grass-commit mailing list