[GRASS-SVN] r32654 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 9 09:19:20 EDT 2008
Author: martinl
Date: 2008-08-09 09:19:20 -0400 (Sat, 09 Aug 2008)
New Revision: 32654
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: fix preferences - OnDefault
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2008-08-09 13:05:45 UTC (rev 32653)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2008-08-09 13:19:20 UTC (rev 32654)
@@ -1449,8 +1449,12 @@
# update widgets
for gks in self.winId.keys():
- group, key, subkey = gks.split(':')
- value = self.settings.Get(group, key, subkey)
+ try:
+ group, key, subkey = gks.split(':')
+ value = self.settings.Get(group, key, subkey)
+ except ValueError:
+ group, key, subkey, subkey1 = gks.split(':')
+ value = self.settings.Get(group, key, [subkey, subkey1])
win = self.FindWindowById(self.winId[gks])
if win.GetName() in ('GetValue', 'IsChecked'):
value = win.SetValue(value)
More information about the grass-commit
mailing list