Op do, 17-02-2005 te 11:07 +0530, schreef Somesh Bartakke:
>am using TextView widget in a program.
>i want to get Iter at current cursor position,
>how to get it ?
>i couldnt find the function for that .
> 
>Somesh 

buf = gtk.TextBuffer()
[...]
insert = buf.get_mark('insert')
iter = buf.get_iter_at_mark(insert)

'insert' is a special mark used to track the cursor position. It is
builtin in the GtkTextBuffer.

-- 
StÃphan Kochen <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to