[GRASS-SVN] r67272 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 20 03:39:14 PST 2015
Author: martinl
Date: 2015-12-20 03:39:14 -0800 (Sun, 20 Dec 2015)
New Revision: 67272
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix OnSetValue for ComboBox widgets on Windows
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2015-12-20 11:21:49 UTC (rev 67271)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2015-12-20 11:39:14 UTC (rev 67272)
@@ -32,7 +32,7 @@
.. todo::
verify option value types
-Copyright(C) 2000-2013 by the GRASS Development Team
+Copyright(C) 2000-2015 by the GRASS Development Team
This program is free software under the GPL(>=v2) Read the file
COPYING coming with GRASS for details.
@@ -2259,7 +2259,7 @@
else:
if isinstance(me, wx.SpinCtrl):
porf['value'] = str(me.GetValue())
- elif isinstance(me, wx.Choice):
+ elif isinstance(me, wx.Choice) and sys.platform != 'win32':
porf['value'] = me.GetStringSelection()
else:
porf['value'] = me.GetValue()
More information about the grass-commit
mailing list