[GRASS-dev] [GRASS GIS] #3502: v.proj location not set in dialog
GRASS GIS
trac at osgeo.org
Wed Jan 30 10:09:36 PST 2019
#3502: v.proj location not set in dialog
------------------------+-----------------------------
Reporter: balagates | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.4
Component: wxGUI | Version: 7.4.0
Resolution: | Keywords: v.proj location
CPU: OSX/Intel | Platform: MacOSX
------------------------+-----------------------------
Comment (by balagates):
On my Mac running macOS 10.12.6 I installed the pre-built Grass 7.6.0 app
linked on the Grass download page. Within the Grass app it reports Python
2.7.15 and wxPython 4.0.3. The GUI for v.proj still seems to have the
same problem and maybe an additional new problem. From the main GUI menu
I select "File -> Import Vector Data -> Reproject vector map from
different GRASS location [v.proj]". A window appears with the Source tab
selected and 3 combo boxes (Location, Mapset, Name). The pull-down for
the Location ComboBox is populated with values I expect. Selecting one
from the pull-down does not set the location. At the bottom of the
windows is the assembled command line and after making a selection from
the pull-down is says "v.proj location=<required>". If instead of
selecting the value from the ComboBox pulldown I type in location (or do
some manual edits on the one I pulled down, the location gets set.
So my guess is when selecting a ComboBox on macOS wxPython is generating a
wx.EVT_COMBOBOX event but not a wx.EVT_TEXT event. Since Grass 7.2 there
have been several changes in forms.py changing bindings from
wx.EVT_COMBOBOX to wx.EVT_TEXT with resulting loss of functionality on
macOS. Since it appears to work on my Ubuntu machine the events generated
for a ComboBox must be different. I haven't studied wxPython to see what
events we expect when a ComboBox selection is made. To me it does make
more sense that when making a ComboBox selection a wx.EVT_COMBOBOX would
be generated. It is not so obvious that a wx.EVT_TEXT would get
generated...but maybe it will? I do not know enough now to know what
should be robust.
Note also that some changes in Grass 7.4.3 forms.py appear to have caused
similar problems with the Mapset ComboBox selection. I am still studying
that but the symptoms are the same. Selecting a value from the ComboBox
pulldown does nothing, but typing in a Mapset name in the field sets it
values and populates the Name ComboBox.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3502#comment:5>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list