Selaa lähdekoodia

wxGUI/modeler: default varible type changed from 'integer' to 'string'

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48998 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 vuotta sitten
vanhempi
commit
84ef324ae7
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      gui/wxpython/gui_modules/gmodeler.py

+ 2 - 1
gui/wxpython/gui_modules/gmodeler.py

@@ -3997,6 +3997,7 @@ class VariablePanel(wx.Panel):
                                          _("vector"),
                                          _("mapset"),
                                          _("file")])
+        self.type.SetSelection(2) # string
         self.value = wx.TextCtrl(parent = self, id = wx.ID_ANY)
         self.desc = wx.TextCtrl(parent = self, id = wx.ID_ANY)
         
@@ -4084,7 +4085,7 @@ class VariablePanel(wx.Panel):
             GError(parent = self,
                    message = msg)
         else:
-            self.type.SetSelection(0)
+            self.type.SetSelection(2) # string
             self.value.SetValue('')
             self.desc.SetValue('')
             self.UpdateModelVariables()