Ver código fonte

wxGUI: editable comboxbox for multiple columns
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33030)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33031 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 anos atrás
pai
commit
3f8bad627e
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      gui/wxpython/gui_modules/menuform.py

+ 3 - 2
gui/wxpython/gui_modules/menuform.py

@@ -1139,7 +1139,8 @@ class cmdPanel(wx.Panel):
                     selection.Bind(wx.EVT_TEXT, self.OnSetValue)
                 # dbcolumn entry
                 elif p.get('prompt','') in ('dbcolumn', 'dbtable'):
-                    if p.get('age', 'old') == 'old':
+                    if p.get('age', 'old') == 'old' and \
+                            p.get('multiple', 'no') == 'no':
                         style = wx.CB_SIMPLE | wx.CB_READONLY
                     else:
                         style = wx.CB_SIMPLE
@@ -1371,7 +1372,7 @@ class cmdPanel(wx.Panel):
     def OnDbColumn(self, event):
         """Get list of table columns"""
         choices = []
-
+        
         p = self.task.get_param('table', raiseError=False)
         if p and p.get('prompt', '') == 'dbtable':
             cmd = ['db.columns',