[GRASS-dev] Current state of GUIs on Win32

Hi all,

(not sure, but my last email seems to have disappeared somehow,
so here goes another try).

I have been trying the current versions of the GUIs (Tcl/Tk and
WxWidgets) using GRASS 6.3.rc5 on Win32 (MinGW/MSYS Build).

They all have a number of issues that make them less than a
pleasant experience for Windows users right now:

1. Tcl/Tk

Version 8.5.1 (GPL) works fine, NVIZ starts up, can visualize 3D DEM.
Hangs when trying to add a vector points map.
Tk 8.5.1 has new widgets that are closer to the Win native ones.
NVIZ uses those, but the module forms and gis.m don't, resulting in
a strange look and feel.

2. WxPython

I installed Python 2.5 and WxPython 2.8. I found that I also had to
install the Python Extensions for Windows from here:

  http://sourceforge.net/project/showfiles.php?group_id=78018

Doing grass63 -wxpython then gave me:

Starting GRASS ...
Traceback (most recent call last):
   File "C:/msys/1.0/local/grass-6.3.0RC5/etc/wxpython/gis_set.py", line 690, in <module>
     GRASSStartUp = StartUp(0)
   File "C:\msys\1.0\local\python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7836, in __init__
     self._BootstrapApp()
   File "C:\msys\1.0\local\python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7433, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "C:/msys/1.0/local/grass-6.3.0RC5/etc/wxpython/gis_set.py", line 674, in OnInit
     StartUp = GRASSStartup()
   File "C:/msys/1.0/local/grass-6.3.0RC5/etc/wxpython/gis_set.py", line 45, in __init__
     self.grassrc = self._read_grassrc()
   File "C:/msys/1.0/local/grass-6.3.0RC5/etc/wxpython/gis_set.py", line 356, in _read_grassrc
     key, val = line.split(":")
ValueError: too many values to unpack
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

According to some Python forums:

The "too many values to unpack" indicates you don't have enough
variables in the [for (...) in <var>: ] construct.

... so is the WxPython GUI broken in RC5?

Anybody had better luck with WxPython on Win yet?

Cheers,

Benjamin

--
Benjamin Ducke
Senior Applications Support and Development Officer

Oxford Archaeological Unit Limited
Janus House
Osney Mead
OX2 0ES
Oxford, U.K.

Tel.: ++44 (0)1865 263 800
benjamin.ducke@oxfordarch.co.uk

Hi,

2008/3/7, Benjamin Ducke <benjamin.ducke@ufg.uni-kiel.de>:

2. WxPython

I installed Python 2.5 and WxPython 2.8. I found that I also had to
install the Python Extensions for Windows from here:

        http://sourceforge.net/project/showfiles.php?group_id=78018

Doing grass63 -wxpython then gave me:

[snip]

... so is the WxPython GUI broken in RC5?

Anybody had better luck with WxPython on Win yet?

I am working on this (more or less), I am fixing the code in trunk. I
will backported it to trunk before releasing 6.3.0. See

http://grass.gdf-hannover.de/wiki/WxPython-based_GUI_for_GRASS#MS_Windows

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

today I have fixed gcmd module [1], seems to work on Windows too, even
you can kill running command, see

http://grass.gdf-hannover.de/wiki/Image:Wxgui-r-buffer-windows.png

Enjoy, Martin

[1] http://trac.osgeo.org/grass/changeset/30501

2008/3/7, Martin Landa <landa.martin@gmail.com>:

Hi,

2008/3/7, Benjamin Ducke <benjamin.ducke@ufg.uni-kiel.de>:

> 2. WxPython
>
> I installed Python 2.5 and WxPython 2.8. I found that I also had to
> install the Python Extensions for Windows from here:
>
> http://sourceforge.net/project/showfiles.php?group_id=78018
>
> Doing grass63 -wxpython then gave me:

[snip]

> ... so is the WxPython GUI broken in RC5?
>
> Anybody had better luck with WxPython on Win yet?

I am working on this (more or less), I am fixing the code in trunk. I
will backported it to trunk before releasing 6.3.0. See

http://grass.gdf-hannover.de/wiki/WxPython-based_GUI_for_GRASS#MS_Windows

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Benjamin Ducke wrote:

Tk 8.5.1 has new widgets that are closer to the Win native ones.
NVIZ uses those, but the module forms and gis.m don't, resulting in
a strange look and feel.

That implies that NVIZ is linking against 8.5 Tcl/Tk DLLs, but
$GRASS_WISH refers to an older version.

Essentially, NVIZ, v.digit (the Tcl/Tk one) and the form library used
by e.g. d.what.vect are hybrid Tcl/Tk + C programs which link against
the Tcl/Tk libraries as detected by configure. OTOH, d.m, gis.m,
d.rast.edit (the Tcl/Tk one) and the option forms are all pure Tcl/Tk
code (no C) which is executed using $GRASS_WISH.

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