[GRASS-SVN] r57211 - in grass/trunk/gui/wxpython: core gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 18 06:23:56 PDT 2013


Author: annakrat
Date: 2013-07-18 06:23:56 -0700 (Thu, 18 Jul 2013)
New Revision: 57211

Modified:
   grass/trunk/gui/wxpython/core/settings.py
   grass/trunk/gui/wxpython/gui_core/preferences.py
Log:
wxGUI/preferences: fix error when setting default

Modified: grass/trunk/gui/wxpython/core/settings.py
===================================================================
--- grass/trunk/gui/wxpython/core/settings.py	2013-07-18 13:19:14 UTC (rev 57210)
+++ grass/trunk/gui/wxpython/core/settings.py	2013-07-18 13:23:56 UTC (rev 57211)
@@ -191,7 +191,7 @@
                     'selection' : 0,
                     },
                 'nvizDepthBuffer' : {
-                    'value' : 16,
+                    'value' : '16',
                     },
                 },
             #

Modified: grass/trunk/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/preferences.py	2013-07-18 13:19:14 UTC (rev 57210)
+++ grass/trunk/gui/wxpython/gui_core/preferences.py	2013-07-18 13:23:56 UTC (rev 57211)
@@ -798,7 +798,8 @@
                           wx.ALIGN_CENTER_VERTICAL,
                           pos = (row, 0))
             value = self.settings.Get(group='display', key='nvizDepthBuffer', subkey='value')
-            textCtrl = wx.TextCtrl(parent=panel, id=wx.ID_ANY, value=str(value), validator=IntegerValidator())
+            textCtrl = wx.TextCtrl(parent=panel, id=wx.ID_ANY, value=str(value), validator=IntegerValidator(),
+                                   name='GetValue')
             self.winId['display:nvizDepthBuffer:value'] = textCtrl.GetId()
             gridSizer.Add(item = textCtrl,
                           flag = wx.ALIGN_RIGHT |



More information about the grass-commit mailing list