[pygtk] Automatically scrolling scrollbar on insertion of text

John Dennis jdennis at redhat.com
Wed Feb 20 22:26:35 WST 2008


Stephen George wrote:
> 
> Hi All,
> 
> I have a TextView with scroll bar, and programatically adding text to 
> the end of the buffer as my program progresses. (non editable)
> 
> Once the text buffer becomes large enough for the view to show the 
> scroll bars, I'd like it to automatically scroll and show the latest 
> line inserted. (it currently does not)
> 
> Is there a setting somewhere to automatically do this, ... do I need to 
> programatically scroll the scroll bar upon insertion of text?
> 
> ( I'm assuming scroll bar is the one that needs to be changed )
> 
> Any suggestions where I should start to look

Yes, read the FAQ listed at the bottom of every email (see below). You 
want FAQ entry 14.10.

> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


-- 
John Dennis <jdennis at redhat.com>


More information about the pygtk mailing list