[GRASS-SVN] r64561 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 07:10:17 PST 2015


Author: annakrat
Date: 2015-02-11 07:10:17 -0800 (Wed, 11 Feb 2015)
New Revision: 64561

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
fix r.category dialog - cats input field broken introducing special cats gisprompt in r64276

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-02-11 13:45:47 UTC (rev 64560)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-02-11 15:10:17 UTC (rev 64561)
@@ -1151,6 +1151,8 @@
                 title_txt.SetLabel(title + ':')
                 # GIS element entry
                 if p.get('prompt','') not in ('color',
+                                              'cat',
+                                              'cats',
                                               'subgroup',
                                               'sigfile',
                                               'separator',
@@ -1644,6 +1646,16 @@
                     if p.get('guidependency', ''):
                         cb.Bind(wx.EVT_COMBOBOX, self.OnUpdateSelection)
 
+                elif prompt in ('cat', 'cats'):
+                    win = wx.TextCtrl(parent=which_panel)
+                    value = self._getValue(p)
+                    win.SetValue(value)
+                    p['wxId'] = [win.GetId()]
+                    win.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    which_sizer.Add(item=win, proportion=0,
+                                    flag=wx.EXPAND | wx.BOTTOM | wx.LEFT | wx.RIGHT,
+                                    border=5)
+
             if self.parent.GetName() == 'MainFrame' and (self._giface and hasattr(self._giface, "_model")):
                 parChk = wx.CheckBox(parent = which_panel, id = wx.ID_ANY,
                                      label = _("Parameterized in model"))



More information about the grass-commit mailing list