[GRASS-dev] 'g.gui wxpython' won't work in wingrass as wxgui
is a shell script
Moritz Lennert
mlennert at club.worldonline.be
Thu Feb 28 04:25:43 EST 2008
On 27/02/08 21:05, Martin Landa wrote:
> Hi,
>
> 2008/2/21, Glynn Clements <glynn at gclements.plus.com>:
>
>> 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
More information about the grass-dev
mailing list