[GRASS-SVN] r57988 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 13 13:32:20 PDT 2013
Author: martinl
Date: 2013-10-13 13:32:19 -0700 (Sun, 13 Oct 2013)
New Revision: 57988
Modified:
grass/trunk/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI/mapdisp: show computational region extent by default when selected from the statusbar
Modified: grass/trunk/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/statusbar.py 2013-10-13 19:57:58 UTC (rev 57987)
+++ grass/trunk/gui/wxpython/mapdisp/statusbar.py 2013-10-13 20:32:19 UTC (rev 57988)
@@ -289,6 +289,12 @@
"""!Toggle status text
"""
self.Update()
+ if event.GetSelection() == 3: # use something better than magic numbers
+ # show computation region extent by default
+ self.statusbarItems['region'].SetValue(True)
+ # redraw map if auto-rendering is enabled
+ if self.mapFrame.IsAutoRendered():
+ self.mapFrame.OnRender(None)
def SetMode(self, modeIndex):
"""!Sets current mode
@@ -466,7 +472,6 @@
SbItem.SetValue(self, value)
self._connectShowRegion()
-
class SbAlignExtent(SbItem):
"""!Checkbox to select zoom behavior.
More information about the grass-commit
mailing list