[GRASS-SVN] r53088 - grass/branches/releasebranch_6_4/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 4 23:19:26 PDT 2012
Author: cmbarton
Date: 2012-09-04 23:19:24 -0700 (Tue, 04 Sep 2012)
New Revision: 53088
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py
Log:
wxnviz: initialize surface position slider to sane values
Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py 2012-09-05 06:07:16 UTC (rev 53087)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py 2012-09-05 06:19:24 UTC (rev 53088)
@@ -4442,13 +4442,8 @@
#
# position
#
- dim = self._display.GetLongDim()
- self.FindWindowById(self.win['surface']['position']['slider']).SetRange(-2 * dim, 2 * dim)
- if 'z' in data['position']:
- zval = data['position']['z']
- self.FindWindowById(self.win['surface']['position']['axis']).SetSelection(2)
- for control in ('slider','text'):
- self.FindWindowById(self.win['surface']['position'][control]).SetValue(zval)
+ self.OnSurfaceAxis(None)
+
# enable/disable res widget + set draw mode
self.OnSurfaceMode(event = None)
More information about the grass-commit
mailing list