Ver código fonte

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 anos atrás
pai
commit
0912eef09c
1 arquivos alterados com 5 adições e 0 exclusões
  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",