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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 13 12:08:17 EST 2010


Author: martinl
Date: 2010-03-13 12:08:16 -0500 (Sat, 13 Mar 2010)
New Revision: 41421

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: ColumnSelect is not readonly (to unset option)
bugfix #998


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-03-13 16:47:53 UTC (rev 41420)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py	2010-03-13 17:08:16 UTC (rev 41421)
@@ -1341,7 +1341,8 @@
                                                   size=globalvar.DIALOG_TEXTCTRL_SIZE)
                                 win.Bind(wx.EVT_TEXT, self.OnSetValue)
                         elif p.get('prompt', '') == 'dbcolumn':
-                            win = gselect.ColumnSelect(parent=which_panel)
+                            win = gselect.ColumnSelect(parent = which_panel,
+                                                       value = p.get('default', ''))
                             ### p['wxGetValue'] = win.GetStringSelection
                             ### win.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                             win.Bind(wx.EVT_TEXT, self.OnSetValue)



More information about the grass-commit mailing list