On 27/02/08 21:05, Martin Landa wrote:
Hi,
2008/2/21, Glynn Clements <[EMAIL PROTECTED]>:
Moritz Lennert wrote:
> as wxgui is a shell script, g.gui wxpython (which does:
>
> else if (strcmp(type->answer, "wxpython") == 0) {
> sprintf (progname, "%s/etc/wxpython/scripts/wxgui", G_gisbase());
> if (rc_file->answer) {
> G_spawn(progname, "wxgui", rc_file->answer, NULL);
> )
>
> will not work.
since gis.m and d.m are also shell scripts, g.gui tcltk|oldtcktk will
not work too(?)
I have never tried d.m, but for gis.m there is a gis.m.bat replacement
[1] which directly call the tcltk code.
There is one problem, when you run `g.gui wxpython`, the program is
waiting for thread termination. So you cannot use xterm when wxGUI is
running. I am not sure how to fix it since I am not so familiar with
G_spawn*.
I guess you will have to fork before you G_spawn ?
Moritz
[1]
http://trac.osgeo.org/grass/browser/grass/trunk/gui/tcltk/gis.m/gis.m.bat
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev