Explorar el Código

wxGUI/lmgr: it was not possible to start wxIClass from Search modules tab

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57655 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras hace 11 años
padre
commit
ae72d6ba5c
Se han modificado 1 ficheros con 10 adiciones y 2 borrados
  1. 10 2
      gui/wxpython/lmgr/frame.py

+ 10 - 2
gui/wxpython/lmgr/frame.py

@@ -1437,8 +1437,16 @@ class GMFrame(wx.Frame):
         """
         self._gconsole.RunCmd(['g.manual','-i'])
         
-    def OnIClass(self, event):
-        """!Start wxIClass tool"""
+    def OnIClass(self, event=None, cmd=None):
+        """!Start wxIClass tool
+
+        The parameters of all handlers which are associated with module
+        and contained in menu/toolboxes must be event and cmd.
+        When called from menu event is always None and cmd is the associated
+        command (list containing a module name and paremeters).
+        @todo This documentation is actually documentation of some component related
+        to gui_core/menu.py file.
+        """
         from iclass.frame import IClassMapFrame, haveIClass, errMsg
         if not haveIClass:
             GError(_('Unable to launch "Supervised Classification Tool".\n\n'