[GRASS-dev] d.rast.edit in wxgrass

Glynn Clements glynn at gclements.plus.com
Thu Jun 28 06:47:56 EDT 2007


Daniel Calvelo wrote:

> > Currently, menuform.py if run standalone will accept one argument, the
> > grass command, and will call it on its own to get back the
> > --xml-description. So an execve() should be enough, I think.
> 
> [Glynn]
> > IOW:
> >         sprintf(script, "%s/etc/wx/gui_modules/menuform.py", G_gisbase());
> >         execlp(script, "menuform.py", pgm_name, NULL);
> >         G_fatal_error(_("Unable to invoke wxPython GUI"));
> > ?
> 
> Yes.
> 
> However, I should ask, is this preferable to the stdin feed of xml?
> Which is more maintainable? I'm uneasy about handling things
> differently for tcltk and wxpython; seems messy.

I'm not sure that there's any real advantage one way or the other. The
existing Tcl/Tk mechanism is just how it was implemented at the time.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list