[GRASS-SVN] r30793 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 29 07:26:14 EDT 2008
Author: martinl
Date: 2008-03-29 07:26:14 -0400 (Sat, 29 Mar 2008)
New Revision: 30793
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI (menuform) check also default values (OnCheckBoxMulti)
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-03-29 08:45:24 UTC (rev 30792)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-03-29 11:26:14 UTC (rev 30793)
@@ -957,7 +957,7 @@
if p.get('multiple','no') == 'yes' and \
p.get('type', '') == 'string':
- txt = wx.StaticBox (parent=which_panel, id=0, label=" " + title + ":")
+ txt = wx.StaticBox (parent=which_panel, id=0, label=" " + title + ": ")
if len(valuelist) > 6:
hSizer=wx.StaticBoxSizer ( box=txt, orient=wx.VERTICAL )
else:
@@ -1243,6 +1243,8 @@
myIndex = p['wxId'].index( me )
# Unpack current value list
currentValues={}
+ for isThere in theParam.get('default','').split(','):
+ currentValues[isThere] = 1
for isThere in theParam.get('value','').split(','):
currentValues[isThere] = 1
theValue = theParam['values'][myIndex]
More information about the grass-commit
mailing list