Browse Source

wxGUI/forms: fix OnSetValue for ComboBox widgets on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67272 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
64c92cd9eb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gui/wxpython/gui_core/forms.py

+ 2 - 2
gui/wxpython/gui_core/forms.py

@@ -32,7 +32,7 @@ pythonw on a Mac.
 .. todo::
 .. todo::
     verify option value types
     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
 This program is free software under the GPL(>=v2) Read the file
 COPYING coming with GRASS for details.
 COPYING coming with GRASS for details.
@@ -2259,7 +2259,7 @@ class CmdPanel(wx.Panel):
         else:
         else:
             if isinstance(me, wx.SpinCtrl):
             if isinstance(me, wx.SpinCtrl):
                 porf['value'] = str(me.GetValue())
                 porf['value'] = str(me.GetValue())
-            elif isinstance(me, wx.Choice):
+            elif isinstance(me, wx.Choice) and sys.platform != 'win32':
                 porf['value'] = me.GetStringSelection()                    
                 porf['value'] = me.GetStringSelection()                    
             else:
             else:
                 porf['value'] = me.GetValue()
                 porf['value'] = me.GetValue()