EVT_SCROLL_THUMBRELEASE not working in Linux

I understand that EVT_SCROLL_ENDSCROLL is for Winblows only, but does
anyone know why EVT_SCROLL_THUMBRELEASE doesn't work on Linux? I've
attached a drop-in replacement for the wxSlider.py demo: on my box
(Debian Woody, Python 2.2, wxPython 2.4.0.4) my handler is never called,
no matter what I do with the slider. EVT_SCROLL of course does work.

It seems that someone else had the same problem:
http://aspn.activestate.com/ASPN/Mail/Message/wxPython-users/1414498
but got no answer.

Any ideas?

Thanks,
Charl

wxSlider.py (956 Bytes)

···

--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/

Charl P. Botha wrote:

I understand that EVT_SCROLL_ENDSCROLL is for Winblows only, but does
anyone know why EVT_SCROLL_THUMBRELEASE doesn't work on Linux? I've
attached a drop-in replacement for the wxSlider.py demo: on my box
(Debian Woody, Python 2.2, wxPython 2.4.0.4) my handler is never called,
no matter what I do with the slider. EVT_SCROLL of course does work.

Which of these would you map to THUMBRELEASE?

typedef enum
{
   GTK_SCROLL_NONE,
   GTK_SCROLL_STEP_BACKWARD,
   GTK_SCROLL_STEP_FORWARD,
   GTK_SCROLL_PAGE_BACKWARD,
   GTK_SCROLL_PAGE_FORWARD,
   GTK_SCROLL_JUMP
} GtkScrollType;

If GTK doesn't provide it and we can't emulate it easily then wxWindows doesn't provide it either.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Ouch, that's not good news. So this comes down to a GTK deficiency.

Thanks for the info, Robin!

Best regards,
Charl

···

On Tue, Mar 11, 2003 at 10:25:44AM -0800, Robin Dunn wrote:

Charl P. Botha wrote:
>I understand that EVT_SCROLL_ENDSCROLL is for Winblows only, but does
>anyone know why EVT_SCROLL_THUMBRELEASE doesn't work on Linux? I've
>attached a drop-in replacement for the wxSlider.py demo: on my box
>(Debian Woody, Python 2.2, wxPython 2.4.0.4) my handler is never called,
>no matter what I do with the slider. EVT_SCROLL of course does work.
>

Which of these would you map to THUMBRELEASE?

typedef enum
{
  GTK_SCROLL_NONE,
  GTK_SCROLL_STEP_BACKWARD,
  GTK_SCROLL_STEP_FORWARD,
  GTK_SCROLL_PAGE_BACKWARD,
  GTK_SCROLL_PAGE_FORWARD,
  GTK_SCROLL_JUMP
} GtkScrollType;

If GTK doesn't provide it and we can't emulate it easily then wxWindows
doesn't provide it either.

--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/