[GRASS-SVN] r67274 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 20 03:44:16 PST 2015
Author: martinl
Date: 2015-12-20 03:44:16 -0800 (Sun, 20 Dec 2015)
New Revision: 67274
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix OnSetValue for ComboBox widgets on Windows
(merge r67273 from trunk)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-12-20 11:41:15 UTC (rev 67273)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py 2015-12-20 11:44:16 UTC (rev 67274)
@@ -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.
@@ -2179,6 +2179,10 @@
else:
if isinstance(me, wx.SpinCtrl):
porf['value'] = str(me.GetValue())
+ elif isinstance(me, wx.ComboBox):
+ porf['value'] = me.GetValue()
+ elif isinstance(me, wx.Choice):
+ porf['value'] = me.GetStringSelection()
else:
porf['value'] = me.GetValue()
More information about the grass-commit
mailing list