[pygtk] Scrolling with not scrollbars

Thorsten Wilms t_w_ at freenet.de
Mon Apr 21 04:08:00 WST 2008


Hi!

I'm working on a demo of special type of scrollbar. This custom widget
is almost done, but I need to attach it to a textview to have something
to scroll.

Now, to me it looks like I should stick the textview into a viewport.
There's no advantage in using a scrolledwindow with v and h policy
NEVER, right?

As a first step I tried to just change the part of the textview that is
visible. This by getting an adjustment for the viewport and changing the
value. I tried several ways, but didn't get it to work. There must be
something I'm missing here.

Could you please give me a short example of how to scroll a viewport
with a textview in it?

-- 
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/



More information about the pygtk mailing list