[pygtk] scrollbar query

Andi Albrecht lists at andialbrecht.de
Thu Jul 27 21:26:51 WST 2006


Hi Bentley,

it is supplied by the scrolled window... You have to setup a connection to
the hadjustment/vadjustment of the scrolled window. I've attached an
simple example.

Regards,

Andi

Bentley Harry wrote:
> Im trying to attach a scrollbar to a viewport containing a textview.  I 
> realise it would be easier to use a scrolled window but i want to 
> capture information about whether the scrollbar is being scrolled up or 
> down which is not supplied by the scrolled window (unless it is scrolled 
> using the mouse-wheel).
> However, when i run my program the viewport comes up the size of the 
> entire textfile (which is too big to fit on the screen) and the 
> scrollbar thumbwheel is the same size as the trough so therefore you 
> cannot scroll up or down.  How do i make the viewport only display a 
> portion of the textview at a time and allow scrolling up and down using 
> the scrollbar.
> Thanks
> te1l
> 
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

-------------- nächster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname   : scrolled_window.py
Dateityp    : text/x-python
Dateigr??e  : 847 bytes
Beschreibung: nicht verf?gbar
URL         : http://www.daa.com.au/pipermail/pygtk/attachments/20060727/714777ac/scrolled_window.py


More information about the pygtk mailing list