[pygtk] Viewport set-scroll-adjustments signal

Johan Dahlin jdahlin at async.com.br
Mon Mar 27 10:09:09 WST 2006


Scott Horowitz wrote:
> I'm at a loss as to why I'm unable to use the Viewport's
> set-scroll-adjustments signal. Essentially, I'm trying to cancel the
> auto-adjustment of the Viewport and manually set the vertical and
> horizontal scrollbars myself.
I rewrote GtkViewPort in python, as a demonstration on how to make a
widget scrollable. You can find the code in PyGTK cvs:

http://cvs.gnome.org/viewcvs/gnome-python/pygtk/examples/gtk/scrollable.py?view=markup

Perhaps you can use that code as a base for your own widget, it'll be
a lot easier to develop since it's all python.

Johan


More information about the pygtk mailing list