[GRASS-SVN] r56447 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 28 03:39:40 PDT 2013


Author: martinl
Date: 2013-05-28 03:39:40 -0700 (Tue, 28 May 2013)
New Revision: 56447

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: p['value'] must be string (see task.py)

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2013-05-28 10:29:42 UTC (rev 56446)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2013-05-28 10:39:40 UTC (rev 56447)
@@ -1015,7 +1015,7 @@
                         # parameter previously set
                         if value:
                             if isinstance(txt2, wx.SpinCtrl):
-                                txt2.SetValue(int(value))
+                                txt2.SetValue(int(value)) 
                             else:
                                 txt2.SetValue(value)
                         
@@ -2039,7 +2039,10 @@
         elif name == 'ModelParam':
             porf['parameterized'] = me.IsChecked()
         else:
-            porf['value'] = me.GetValue()
+            if isinstance(me, wx.SpinCtrl):
+                porf['value'] = str(me.GetValue())
+            else:
+                porf['value'] = me.GetValue()
         
         self.OnUpdateValues(event)
         



More information about the grass-commit mailing list