[GRASS-dev] WxPython prototype GRASS GUI. Version 2

Yann Chemin ychemin at gmail.com
Mon Aug 7 22:21:48 EDT 2006


Thanks Glynn !
It works well.

here are the modifications:
in gism.py replace:
("Map calculator", "Map calculator", self.runMenuCmd, "r.mapcalc"),
with this:
("Map calculator", "Map calculator", self.runMenuCmd, "mapcalc_gparser.sh"),

and add the Glynn file attached (mapcalc_gparser.sh) to the py_gm directory.

it opens a r.mapcalc dialog box where one can enter equations.

:-)
Yann

On 08/08/06, Yann Chemin <ychemin at gmail.com> wrote:
> nice!
>
> ok, i'll try.
>
> thanks,
> Yann
>
> On 08/08/06, Glynn Clements <glynn at gclements.plus.com> wrote:
> >
> > Yann Chemin wrote:
> >
> > > Sorry to ask this new bie question, but you mean that the front-end
> > > should be a file called from the GUI and this front-end will somehow
> > > launch r.mapcalc, don't you?
> >
> > Yes. The front-end would be a g.parser script with one option,
> > expression=, and it would invoke r.mapcalc on that expression.
> >
> > Unlike r.mapcalc, a script which uses g.parser will accept all
> > G_parser() options, e.g. --interface-description.
> >
> > --
> > Glynn Clements <glynn at gclements.plus.com>
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapcalc_gparser.sh
Type: application/x-sh
Size: 295 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060808/8653a5f6/mapcalc_gparser.sh


More information about the grass-dev mailing list