[GRASS-SVN] r55431 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 18 13:19:10 PDT 2013
Author: wenzeslaus
Date: 2013-03-18 13:19:10 -0700 (Mon, 18 Mar 2013)
New Revision: 55431
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI/lmgr: connecting the updateMap signal from the main giface object
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2013-03-18 19:00:45 UTC (rev 55430)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2013-03-18 20:19:10 UTC (rev 55431)
@@ -162,6 +162,7 @@
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
self._giface.mapCreated.connect(self.OnMapCreated)
+ self._giface.updateMap.connect(self._updateCurrentMap)
# minimal frame size
self.SetMinSize((globalvar.GM_WINDOW_SIZE[0], 400))
@@ -1664,6 +1665,10 @@
lcmd = cmd,
lgroup = None)
+ def _updateCurrentMap(self):
+ """!Updates map of the current map window."""
+ self.GetMapDisplay().GetWindow().UpdateMap()
+
def OnMapCreated(self, name, ltype, add=None):
"""!Decides wheter the map should be added to layer tree."""
if add is None:
More information about the grass-commit
mailing list