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

2014-05-18 Thread Anna Petrášová
Hi Yann, On Sat, May 17, 2014 at 11:46 PM, Yann Chemin yche...@gmail.com wrote: Hi Anna, Patch works great ! Needs RunMenuCmd and all goes to perfection. Any chance to have it included in the SVN tree? I committed the patch in trunk, if you agree, I won't backport it now. I don't

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

2014-05-18 Thread Yann Chemin
Hi Anna, Thank you, updating trunk now ! About RunMenuCmd, it is just a note to remember that it is the call to use for external program. All good there. Yann On 18/05/2014, Anna Petrášová kratocha...@gmail.com wrote: Hi Yann, On Sat, May 17, 2014 at 11:46 PM, Yann Chemin yche...@gmail.com

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

2014-05-17 Thread Anna Petrášová
Hi Yann, it's grayed out because it tests if it's a working grass command (for example r.in.lidar is grayed when you don't compile grass with liblas). You can try to apply this patch which tests if the command looks like grass command (regular expression) and if it is not, it doesn't disable it

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

2014-05-17 Thread Yann Chemin
Hi Anna, Patch works great ! Needs RunMenuCmd and all goes to perfection. Any chance to have it included in the SVN tree? Thank you Yann On 18/05/2014, Anna Petrášová kratocha...@gmail.com wrote: Hi Yann, it's grayed out because it tests if it's a working grass command (for example

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

2014-05-15 Thread Yann Chemin
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 -- ___ grass-dev

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

2014-05-15 Thread Yann Chemin
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 yche...@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

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

2014-05-15 Thread Yann Chemin
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