[pygtk] Scrolling with not scrollbars
John Finlay
finlay at moeraki.com
Mon Apr 21 05:10:20 WST 2008
Thorsten Wilms wrote:
> 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?
>
>
A textview has adjustments built-in so it doesn't need to be put inside
a viewport. Use the set_scroll_adjustments() method to set the
adjustments for the textview.
John
More information about the pygtk
mailing list