[GRASS-dev] [GRASS GIS] #1759: Selecting maps in dropdown menu: slider to move up/down maps does not work

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: Default | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
When running GRASS (6.4 or 7.0) under Ubuntu (11.10 and 12.04), the slider
to move up/down in the dropdown list of maps does not work. It does appear
(see attached screenshot), but when clicking on it it disappears.

This affects all screens with the option to select a layer (i.e., the gui
of almost all grass functions)

It is also not possible to move down or up the list with maps using the
keyboard arrow (should that be a feature request?). Thus, the only two
ways to select maps is by scrolling using the mouse wheel, or, when one
wants to select one map only, typing in the first letter(s) of the map
name.

Although specific to Ubuntu (I suspect), it does seriously affect the user
experience of these users (not to be overly dramatic, but to illustrate
the problem, I finally got to report this because I am getting RSI
problems due to too much use of the mouse wheel)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1759&gt;
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
---------------------------+------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Keywords: map selection | Platform: Linux
      Cpu: x86-64 |
---------------------------+------------------------------------------------
Changes (by annakrat):

  * keywords: => map selection
  * component: Default => wxGUI

Comment:

Replying to [ticket:1759 pvanbosgeo]:
> When running GRASS (6.4 or 7.0) under Ubuntu (11.10 and 12.04), the
slider to move up/down in the dropdown list of maps does not work. It does
appear (see attached screenshot), but when clicking on it it disappears.

Could you try the widget in wxpython demo (download
[http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.12.1.tar.bz2
here]), it's the ComboCtrl widget, look for TreeCtrl popup. If it works
for you, there is some problem in the wxGUI code. For me (Ubuntu 10.04) it
works fine.

> It is also not possible to move down or up the list with maps using the
keyboard arrow (should that be a feature request?). Thus, the only two
ways to select maps is by scrolling using the mouse wheel, or, when one
wants to select one map only, typing in the first letter(s) of the map
name.

Related ticket #1251

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

Hi,

The TreeCtrl demo works. I can move up and down the folders with both the up and down keyboard key and the mouse (see screenshot for latter).

Ubuntu 10.04 does not have the Unity interface yet I believe. My assumption was the problem is related to this. However, as said, the TreeCtrl demo works.

Maybe the following information is of use? GRASS is compiled with Python 2.7.3 and wxPython 2.8.12.1 (the demo package is Python 2.8 I see). I have compiled GRASS (both 6.4.3 and 7.0 from source, Python and wxPython are the default installs on Ubuntu 12.04)

Cheers

Paulo

On Sat, Oct 6, 2012 at 12:47 PM, GRASS GIS <trac@osgeo.org> wrote:

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
---------------------------±-----------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Keywords: map selection | Platform: Linux
Cpu: x86-64 |
---------------------------±-----------------------------------------------
Changes (by annakrat):

  • keywords: => map selection
  • component: Default => wxGUI

Comment:

Replying to [ticket:1759 pvanbosgeo]:

When running GRASS (6.4 or 7.0) under Ubuntu (11.10 and 12.04), the
slider to move up/down in the dropdown list of maps does not work. It does
appear (see attached screenshot), but when clicking on it it disappears.

Could you try the widget in wxpython demo (download
[http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.12.1.tar.bz2
here]), it’s the ComboCtrl widget, look for TreeCtrl popup. If it works
for you, there is some problem in the wxGUI code. For me (Ubuntu 10.04) it
works fine.

It is also not possible to move down or up the list with maps using the
keyboard arrow (should that be a feature request?). Thus, the only two
ways to select maps is by scrolling using the mouse wheel, or, when one
wants to select one map only, typing in the first letter(s) of the map
name.

Related ticket #1251


Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:1>
GRASS GIS <http://grass.osgeo.org>

Sorry, the demo package is for wxPython, not Python… so that agrees with what I have on my system

On Sat, Oct 6, 2012 at 1:05 PM, Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

Hi,

The TreeCtrl demo works. I can move up and down the folders with both the up and down keyboard key and the mouse (see screenshot for latter).

Ubuntu 10.04 does not have the Unity interface yet I believe. My assumption was the problem is related to this. However, as said, the TreeCtrl demo works.

Maybe the following information is of use? GRASS is compiled with Python 2.7.3 and wxPython 2.8.12.1 (the demo package is Python 2.8 I see). I have compiled GRASS (both 6.4.3 and 7.0 from source, Python and wxPython are the default installs on Ubuntu 12.04)

Cheers

Paulo

On Sat, Oct 6, 2012 at 12:47 PM, GRASS GIS <trac@osgeo.org> wrote:

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
---------------------------±-----------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Keywords: map selection | Platform: Linux
Cpu: x86-64 |
---------------------------±-----------------------------------------------
Changes (by annakrat):

  • keywords: => map selection
  • component: Default => wxGUI

Comment:

Replying to [ticket:1759 pvanbosgeo]:

When running GRASS (6.4 or 7.0) under Ubuntu (11.10 and 12.04), the
slider to move up/down in the dropdown list of maps does not work. It does
appear (see attached screenshot), but when clicking on it it disappears.

Could you try the widget in wxpython demo (download
[http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.12.1.tar.bz2
here]), it’s the ComboCtrl widget, look for TreeCtrl popup. If it works
for you, there is some problem in the wxGUI code. For me (Ubuntu 10.04) it
works fine.

It is also not possible to move down or up the list with maps using the
keyboard arrow (should that be a feature request?). Thus, the only two
ways to select maps is by scrolling using the mouse wheel, or, when one
wants to select one map only, typing in the first letter(s) of the map
name.

Related ticket #1251


Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:1>
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
---------------------------+------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Keywords: map selection | Platform: Linux
      Cpu: x86-64 |
---------------------------+------------------------------------------------

Comment(by annakrat):

I tried wxpython demo with Ubuntu 12.04 and the problems are there too.
The only thing I can recommend you is to disable the overlay scrollbar
feature as described [http://askubuntu.com/questions/36448/is-there-a-way-
to-blacklist-an-individual-application-from-using-overlay-scrollb here],
then it is working correctly.

I have no idea why the arrows don't work at all. This widget is full of
bugs. Maybe we should use a different one, there is
[http://wxpython.org/docs/api/wx.lib.combotreebox-module.html
ComboTreeBox] which seems to have the same functionality and it is working
properly.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
---------------------------+------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Keywords: map selection | Platform: Linux
      Cpu: x86-64 |
---------------------------+------------------------------------------------

Comment(by pvanbosgeo):

Brilliant, thanks a lot for pointing out these solutions! Hopefully this
can be fixed permanently, but I am already very happy with this temporary
solution.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Resolution: wontfix | Keywords: map selection
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by annakrat):

  * status: new => closed
  * resolution: => wontfix

Comment:

To avoid the problem the overlay scrollbar can be disabled before
launching GRASS by:

{{{
export LIBOVERLAY_SCROLLBAR=0
}}}

It is a problem of wxPython/wxWidgets and there is a workaround, so I will
close it.
Other described problems are already in #1251.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1759#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: map selection
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by isaacullah):

  * status: closed => reopened
  * resolution: wontfix =>

Comment:

I know this is marked as "closed", but I do want to just chime in to say
that this a problem on ANY linux windowing system using overlay
scrollbars. That includes both Unity and Xfce, and perhaps several others.
Thus, anyone trying to use GRASS on these systems is going to run intot
this problem, and it is a BIG problem, as it renders GRASS basically
unuseable. This may be related to other, more deeper problems with GRASS
menus, but since there is such an easy, very non-invasive way to fix this
for most by adding the line:

{{{
export LIBOVERLAY_SCROLLBAR=0
}}}

to the grass startup script, why not just do that by default?

~Isaac

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1759#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1759: Selecting maps in dropdown menu: slider to move up/down maps does not work
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: map selection
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------

Comment(by hamish):

see also #973 (duplicate?)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1759#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>