[pygtk] Scroll horizontal IconView with mouse wheel
Damián Nohales
damiannohales at gmail.com
Sun Jan 1 04:33:36 WST 2012
Hello,
Suppose that I have a gtk.ScrolledWindow witch has a child of class
gtk.IconView, the icons are disposed horizontally, then, only an
horizontal scroll bar is showed when there are many icons.
That I want is to allow that the gtk.IconView scroll horizontally with
the mouse wheel. I can capture the event but I don't know how scroll the
IconView.
Is there a way to scroll programmatically the IconView the same amount
as when I press the arrow button in the scroll bar?
I know the existence of "gtk.IconView.scroll_to_path" but I want to
scroll the IconView an amount of pixels, not necessarily to a specific path.
Thanks in advance!
Regards!
More information about the pygtk
mailing list