Discussion:
wx.EVT_MOUSEWHEEL doesn't always work for some widgets when bound
Metallicow
2014-06-11 06:02:17 UTC
Permalink
I have been trying to figure this out for a while... I got a bit of a lead
now that proves that it may be broken or something somewhere.

Anyway... The mouse wheel is supposed to be your friend and give you useful
info/actions for just about everything....

Ex1: when hovering over the TabContainer for a notebook(AUI tested) and use
the wheel. Supposed to Advance tab forward/backward... Nothing.
... Arrrrrg. *pounds the keyboard in fury* because it doesn't work.
... Somehow gets the bright idea to bind wx.EVT_MOUSE_EVENTS and try to
catch it there...
... magically works. WTF.

Ex2: playing with the glCanvas demo...
Modded the cube class in the demo to zoom in/out when wheeled upon.
... When launched in the Frame, after clicking the button, it works as
expected. Zooming in and out of the MyAwesomeModel.obj :)
... enabled the canvas option on the demo notebook panel below the cube and
cone buttons and tried zooming there also ...
... Arrrrrg. *pounds the keyboard in fury* because it doesn't work.
... Somehow gets the bright idea to bind wx.EVT_MOUSE_EVENTS and try to
catch it there...
... magically works but this only applies to the panel parented one.... WTF.

and a few other widgets I can't quite recall atm...

hmmmm....
Why would the wx.EVT_MOUSEWHEEL not work on these widgets, but binding to
wx.EVT_MOUSE_EVENTS catches it...?
Of course there is no traces so this was a pain to figure out the way it
was functioning...
This I would think is obviously a bug or some part of these specific
widgets wasn't hooked in.
This is for classic BTW. might happen with phoenix also, but havent tested
it.

Any Ideas...?
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...