[pygtk] automatic scrolling upon drag-and-drop
matt-pygtk at theory.org
Wed Dec 1 06:56:08 WST 2004
I have a scrolled window with a series of drag targets inside it, and
I want the scrolled window to automatically scroll when the user drags
something near the edges of the window. (assuming the window is not
already scrolled all the way to that edge, of course.)
I think I can do this by making the scrolled window itself a drag
target, and manually scrolling the window when I mouse over the edges,
but this seems like a hackish solution to me.
Also, I notice that Nautilus automatically scrolls the window when an
item is dragged within a few pixels of the edge, rather than only
scrolling when it is dragged over the (2 pixel wide) border of the
This seems like the kind of thing that should be built in to the
widget set. Is there a callback or a clean and easy, canonical way to
do this? Or am I going to have to do it the hackish way?
I'm using pygtk 2.4.
More information about the pygtk