Hi all,

My needs look like are a little bit special :P I need to keep the
scolledwindow scrolling but without showing the scrollbar. If I set the
policy to NEVER then the scrollbar won't scroll and the window grows too
much.

I found a way to get what I need:

sb = self.scrolledwindow.get_vscrollbar()
sb.set_child_visible(False)

This way the scrollbar is hidden but scroll still works :D

Thanks to all!

El 26/09/11 16:25, Pietro Battiston escribió:
> Il giorno ven, 23/09/2011 alle 12.45 +0200, Hugo Teso ha scritto:
>> Hi list!
>>
>> I would like to hide the scrollbar of a scrolledwindow but without using
>> the gtk.POLICY_NEVER. If I use that policy the text won't be scrolled
>> and, as it's quite large, the window grows too much.
> 
> Why is gtk.POLICY_AUTOMATIC not fine?
> 
> Pietro
> 
> 
>>
>> I tried getting the scrollbar with get_vscrollbar() and then using
>> hide(), but it doesn't work; also setting a width of 0 for the scrollbar
>> won't work.
>>
>> Any ideas, please?
>>
>> Regards!
>> _______________________________________________
>> pygtk mailing list   pygtk@daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
> 
> 
> _______________________________________________
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to