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

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


Author: martinl
Date: 2008-05-30 04:31:44 -0400 (Fri, 30 May 2008)
New Revision: 31578

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI/menuform: use for parameters TYPE_DOUBLE TextCtrl? instead of SpinCtrl? widget 
(merge devbr6, 31577)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:28:45 UTC (rev 31577)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:31:44 UTC (rev 31578)
@@ -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