[pygtk] Adjust gtk.ScrolledWindow

middleofdreams at gmail.com middleofdreams at gmail.com
Thu Jan 21 16:06:04 WST 2010


Hi, In my App I was using gtk.TextWiev for displaying text. If some new text
appeard I could use textview.scroll_to_iter or something like this. Now I'm
using Webkit... And here is a problem. How to scroll down on new text? I
connected webkit signal load-finished with function:

        pos=self.scrolled.get_vadjustment()
newpos=pos.get_upper()-pos.get_page_size()
pos.set_value(newpos)
self.scrolled.set_vadjustment(pos)

Sometimes it works perfectly, but sometimes... i see only half of last line.
Why's that? And how to make it work...

Btw, Is it possible to append text to rendered html in webkit (rendered from
string... if that matters)? Maybe in javascript (which i don't know at all)
or wekbit-wide?


Greetings,
Kuba

PS - sorry for my english - it's not my native language.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100121/738abb88/attachment.htm 


More information about the pygtk mailing list