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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 13 14:52:37 PDT 2013


Author: wenzeslaus
Date: 2013-09-13 14:52:37 -0700 (Fri, 13 Sep 2013)
New Revision: 57655

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI/lmgr: it was not possible to start wxIClass from Search modules tab

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2013-09-13 15:26:44 UTC (rev 57654)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2013-09-13 21:52:37 UTC (rev 57655)
@@ -1437,8 +1437,16 @@
         """
         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'



More information about the grass-commit mailing list