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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 20 03:41:15 PST 2015


Author: martinl
Date: 2015-12-20 03:41:15 -0800 (Sun, 20 Dec 2015)
New Revision: 67273

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
fix r67272 in better way


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-12-20 11:39:14 UTC (rev 67272)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-12-20 11:41:15 UTC (rev 67273)
@@ -2259,7 +2259,9 @@
         else:
             if isinstance(me, wx.SpinCtrl):
                 porf['value'] = str(me.GetValue())
-            elif isinstance(me, wx.Choice) and sys.platform != 'win32':
+            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