Kaynağa Gözat

fix https://trac.osgeo.org/grass/changeset/67272 in better way

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67273 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 yıl önce
ebeveyn
işleme
547571f663
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      gui/wxpython/gui_core/forms.py

+ 3 - 1
gui/wxpython/gui_core/forms.py

@@ -2259,7 +2259,9 @@ class CmdPanel(wx.Panel):
         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()