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 năm trước cách đây
mục cha
commit
0912eef09c
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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",