[GRASS-SVN] r53089 - grass/branches/develbranch_6/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 4 23:26:14 PDT 2012


Author: cmbarton
Date: 2012-09-04 23:26:13 -0700 (Tue, 04 Sep 2012)
New Revision: 53089

Modified:
   grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
Log:
wxnviz: initialize surface position slider to sane values. Backport from release branch r53088

Modified: grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/nviz/tools.py	2012-09-05 06:19:24 UTC (rev 53088)
+++ grass/branches/develbranch_6/gui/wxpython/nviz/tools.py	2012-09-05 06:26:13 UTC (rev 53089)
@@ -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