[pygtk] Mouse wheel focus / disabling

Sebastien Aubry aubry at cena.fr
Tue May 30 19:17:17 WST 2006


Hello,

I have an application with a PyGtk NoteBook.
The tabs of this notebook contain ScrollableWindows, which may contain 
various fields, including SpinButtons.

I would like the mouse wheel to _always_ scroll the displayed 
ScrollableWindow, wherever the mouse pointer is.

Currently,

- if the pointer is on a notebook tab, it switches the notebook pages
- if it is on a spinbutton, it modifies the numeric value, what I want 
to avoid because it could lead to mistakes
- if it is on a ScrollableWindow, but not on a SpinButton, it scrolls 
the ScrollableWindow ... but if scrolling the window puts a SpinButton 
behind the pointer, the value of this SpinButton is modified :-(

Is there a way to disable the scroll-event on Notebooks/SpinButtons ? To 
make the ScrollableWindows grab the "mouse wheel focus"?

Thanks

Sébastien Aubry



More information about the pygtk mailing list