[pygtk] Code for text scrolling in textview
Baloon man
reachbaloon at gmail.com
Tue Nov 17 23:48:58 WST 2009
Hello
I am trying to implement text scrolling in text view widget. The following
is what I am trying to do.
>>>>>
iter = self.buffer.get_iter_at_offset(40)
mrk=self.buffer.create_mark("mark1", iter, True)
self.buffer.move_mark(mrk, iter)
self.text.scroll_mark_onscreen(mrk)
<<<<
But this doesn't work as expected. Could some one please get me a simple
code which will keep scroll the text view to offset and keep the cursor
there.
-B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091117/ad8a7a7b/attachment.htm
More information about the pygtk
mailing list