Browse Source

wxGUI/vdigit: show message when no action defined

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50319 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
0912eef09c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      gui/wxpython/vdigit/mapwindow.py

+ 5 - 0
gui/wxpython/vdigit/mapwindow.py

@@ -507,7 +507,12 @@ class VDigitWindow(BufferedWindow):
             return
         
         action = self.toolbar.GetAction()
+        
         if not action:
+            GMessage(parent = self,
+                     message = _("Nothing to do. "
+                                 "Choose appropriate tool from digitizer toolbar."))
+            event.Skip()
             return
         
         if action not in ("moveVertex",