[GRASS-SVN] r31579 - grass/branches/releasebranch_6_3/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 30 04:34:22 EDT 2008


Author: martinl
Date: 2008-05-30 04:34:22 -0400 (Fri, 30 May 2008)
New Revision: 31579

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


Modified: grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:31:44 UTC (rev 31578)
+++ grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/menuform.py	2008-05-30 08:34:22 UTC (rev 31579)
@@ -1047,7 +1047,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=TEXTCTRL_SIZE)
                     txt3.Bind(wx.EVT_TEXT, self.OnSetValue)



More information about the grass-commit mailing list