[wxPython] wxPython and mousewheel

Hello,

I am not sure, if this is intended behaviour and I should fix it in my
application, or if it should be fixed within wxPython.

I am using wxPython (wxGTK) 2.3.1 under linux.

When I use the mousewheel in a wxHtml window, everything works as
expected. When I however try to use the mousewheel in any other context,
the contents does not scroll unless I move to the scrollbar on the side,
where I can use the wheel as expected.

So the question is:
Do I have to add anything to the application (wxGrid and wxText) to
support the mouse wheel?

THanks,

Horst

···

--
Horst@freedict.de
Horst Eyermann
Germany

You need a dictionary? - visit http://www.freedict.de
for free (GPL) dictionaries (unix; windows work in progress)
For windows, visit http://www.freedict.de/wbuch

A article (in German) about dictionary efforts on the net
http://www.heise.de/tp/deutsch/inhalt/on/5927/1.html

I am using wxPython (wxGTK) 2.3.1 under linux.

When I use the mousewheel in a wxHtml window, everything works as
expected. When I however try to use the mousewheel in any other context,
the contents does not scroll unless I move to the scrollbar on the side,
where I can use the wheel as expected.

So the question is:
Do I have to add anything to the application (wxGrid and wxText) to
support the mouse wheel?

It depends on the widget and what your X-server is sending for the wheel
events, (I don't think there is a specific wheel message like there is for
Win32.) IIRC, it may do nothing, it may send scroll events, or even up/down
key events. If the native widget handles those events then you're set, if
not then you can try catching the scroll events and then manually scroll the
widget, but that may not work in all cases.

···

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