[GRASS-dev] Re: [GRASS GIS] #500: GUI menu item to swtich GUIs
Michael Barton
michael.barton at asu.edu
Thu Feb 26 02:40:02 EST 2009
On Feb 25, 2009, at 6:56 PM, <grass-dev-request at lists.osgeo.org> <grass-dev-request at lists.osgeo.org
> wrote:
> Date: Thu, 26 Feb 2009 01:56:34 -0000
> From: "GRASS GIS" <trac at osgeo.org>
> Subject: [GRASS-dev] Re: [GRASS GIS] #500: GUI menu item to swtich
> GUIs
> To: undisclosed-recipients:;
> Message-ID: <049.a7d07addcd658c139b1cd756288a1982 at osgeo.org>
> Content-Type: text/plain; charset="utf-8"
>
> #500: GUI menu item to swtich GUIs
> --------------------------
> +-------------------------------------------------
> Reporter: hamish | Owner: grass-dev at lists.osgeo.org
> Type: enhancement | Status: new
> Priority: major | Milestone: 6.4.0
> Component: default | Version: 6.4.0 RCs
> Resolution: | Keywords: gui
> Platform: All | Cpu: All
> --------------------------
> +-------------------------------------------------
> Comment (by hamish):
>
> I tried the following patch, it seemed to work from the commandline
> with
> --ui, but still not from d.m.
>
> {{{
> Index: gui/scripts/g.change.gui.sh
> ===================================================================
> --- gui/scripts/g.change.gui.sh (revision 36060)
> +++ gui/scripts/g.change.gui.sh (working copy)
> @@ -41,6 +41,11 @@
> exit 1
> fi
>
> +if [ ! -x "`which $(basename "$0")`" ] ; then
> + PATH="$PATH:$GISBASE/etc/gui/scripts"
> + export PATH
> +fi
> +
> if [ "$1" != "@ARGS_PARSED@" ] ; then
> exec g.parser "$0" "$@"
> fi
> }}}
>
>
> ???
>
> Running it from the wxPython GUI still needs to be tested by someone
> please. Config -> Working enviro -> Change default GUI
>
>
>
> Also, I was thinking it could be useful to add an entry after 'Help-
> >About
> system' like 'Help->Show system environment' which would run "set" and
> dump the results to the Output window. It would help in debugging.
>
>
> Hamish
This is actually much easier just to build into each GUI menu than to
try and create a script that works in multiple ways and runs across
multiple platforms.
I just updated the tcltk GUI with a new menu item (under the configure
menu) to switch the default gui to wxpython in GRASS 6.5 svn. Please
check to see that it works OK across platforms. It should, but testing
is needed before it is ported to 6.4 RC4. Martin or I can add an
equivalent to the wxPython menu soon. Sorry that I've been too tied up
to help with this sooner.
Michael
More information about the grass-dev
mailing list