[GRASS-dev] wxGUI customized toolboxes: handler for non-GRASS commands

Yann Chemin ychemin at gmail.com
Thu May 15 21:30:05 PDT 2014


in svn/gui/wxpython/lmgr/frame.py
line 758
by adding:

    def RunCmd(self, event = None, cmd = []):
        """!Run command to system from menu"""
        if event:
            cmd = self.GetMenuCmd(event)
        os.system(cmd)

it should handle it, however, it seems that a flag is needed to enable
the possibility to click the command from the created menu. It is
still grey/shadowed.



On 16/05/2014, Yann Chemin <ychemin at gmail.com> wrote:
> To be precise, the non-GRASS programs have their own GUI already, and
> the calls need only one word.
>
> On 16/05/2014, Yann Chemin <ychemin at gmail.com> wrote:
>> Hi,
>>
>> I would like to make a customized toolbox to call some non-GRASS CLI
>> programs.
>>
>> Handlers OnMenuCmd and RunMenuCmd seem not to work. The menu items are
>> grey/shadowed so that no mouse click is allowed on them.
>>
>> thanks
>> Yann
>> --
>> ----
>>
>
>
> --
> ----
>


-- 
----


More information about the grass-dev mailing list