[pygtk] Scroll a viewport without scrollbars
Dx
dx at dxzone.com.ar
Sat Dec 22 15:15:46 WST 2007
Pygtk,
I have a hbox with progress bars with a fixed size, and those progress
bars are added every time a request arrives - so if many requests
arrive, the window starts to grow. In most cases a ScrolledWindow
would be enough, but due to the proportions of the hbox, it's an ugly
solution (I'd like to scroll it with arrows on both sides, like the
gtk.Notebook tabs)
Hiding the scrollbars (with gtk.POLICY_NEVER) just disables the
scrolling in that direction. Viewports are so abstract that setting
adjustments does nothing...
The closer I got is gtk.gdk.Window.scroll, but that's lost when
resizing the window.
Any ideas?
--
dx
More information about the pygtk
mailing list