[pygtk] Scrollable image widget

saeed saeed.gnu at gmail.com
Sat Jul 4 07:01:26 WST 2009


Do you use "auto scrollbar policy" for ScrolledWindow?
swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)

On 7/3/09, Johannes Bauer <dfnsonfsduifb at gmx.de> wrote:
> 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,
> Joe
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>


More information about the pygtk mailing list