[pygtk] Beginning of buffer in a TextView

Gian Mario Tagliaretti gianmt at gnome.org
Tue Aug 28 23:22:19 WST 2007


2007/8/28, Mírian Bruckschen <cleo.sl a gmail.com>:
> Hi all,

Hi Mírian,

> I've been trying to do something that, I guess, is pretty easy, which
> is to place the cursor in the beginning of a textview's buffer.

I would do:

start_iter = buffer.get_start_iter()
buffer.place_cursor(start_iter)

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list