[GRASS-SVN] r33030 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 23 10:28:06 EDT 2008


Author: martinl
Date: 2008-08-23 10:28:06 -0400 (Sat, 23 Aug 2008)
New Revision: 33030

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: editable comboxbox for multiple columns


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-23 14:05:10 UTC (rev 33029)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2008-08-23 14:28:06 UTC (rev 33030)
@@ -1139,7 +1139,8 @@
                     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 @@
     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',



More information about the grass-commit mailing list