[pygtk] Scrollable image widget

Johannes Bauer dfnsonfsduifb at gmx.de
Fri Jul 3 23:59:28 WST 2009

Sayamindu Dasgupta schrieb:

>> What do I do?
> You can add your widget to a gtk.Viewport
> (http://www.pygtk.org/docs/pygtk/class-gtkviewport.html) and then put
> that inside a scrolledwindow.

I also tried that (Scrolledwindow contains Viewport, Viewport contains
Image). Also did make the scrollbars always appear - but no matter how
large the image is, the scroll bars are always insensitive (greyed out)
and the image is simply cut off.

> Also, if you are looking for a somewhat more advanced imageviewer
> widget - you can take a look at http://trac.bjourne.webfactional.com/

I'll have a look into that, thanks.

Kind regards,

More information about the pygtk mailing list