Преглед изворни кода

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 година
родитељ
комит
64c92cd9eb
1 измењених фајлова са 2 додато и 2 уклоњено
  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::
     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 @@ class CmdPanel(wx.Panel):
         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()