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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 30 04:28:45 EDT 2008


Author: martinl
Date: 2008-05-30 04:28:45 -0400 (Fri, 30 May 2008)
New Revision: 31577

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI/menuform: use for parameters TYPE_DOUBLE TextCtrl instead of SpinCtrl widget


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:16:56 UTC (rev 31576)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:28:45 UTC (rev 31577)
@@ -1041,7 +1041,7 @@
                                 flag=wx.RIGHT | wx.LEFT | wx.TOP | wx.EXPAND, border=5)
 
                 if p.get('multiple','yes') == 'yes' or \
-                        p.get('type','string') == 'string':
+                        p.get('type', 'string') in ('string', 'float'):
                     txt3 = wx.TextCtrl(parent=which_panel, value = p.get('default',''),
                                        size=globalvar.DIALOG_TEXTCTRL_SIZE)
                     if p.get('value','') != '':



More information about the grass-commit mailing list