Переглянути джерело

wxGUI/forms: fix OnSetValue for ComboBox widgets on Windows
(merge https://trac.osgeo.org/grass/changeset/67273 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67274 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 роки тому
батько
коміт
159ebac304
1 змінених файлів з 5 додано та 1 видалено
  1. 5 1
      gui/wxpython/gui_core/forms.py

+ 5 - 1
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.
@@ -2179,6 +2179,10 @@ class CmdPanel(wx.Panel):
         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()