[GRASS-SVN] r68612 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 5 12:14:22 PDT 2016


Author: annakrat
Date: 2016-06-05 12:14:22 -0700 (Sun, 05 Jun 2016)
New Revision: 68612

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: add north arrow the same way as legend if typed in command console

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2016-06-04 20:56:42 UTC (rev 68611)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2016-06-05 19:14:22 UTC (rev 68612)
@@ -756,6 +756,11 @@
                 self.GetMapDisplay().AddLegend(cmd=command, showDialog=False)
             else:
                 self.GetMapDisplay().AddLegend(showDialog=True)
+        elif layertype == 'northarrow':
+            if len(command) > 1:
+                self.GetMapDisplay().AddArrow(cmd=command, showDialog=False)
+            else:
+                self.GetMapDisplay().AddArrow(showDialog=True)
         elif layertype == 'redraw':
             self.GetMapDisplay().OnRender(None)
         elif layertype == 'export':



More information about the grass-commit mailing list