[pygtk] Automatically scrolling scrollbar on insertion of text

Stephen George steve_geo at optusnet.com.au
Wed Feb 20 09:01:29 WST 2008


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

Thanks
Steve


More information about the pygtk mailing list