[pygtk] textbuffers and iters

Nikos Kouremenos kourem at gmail.com
Thu Apr 6 18:02:48 WST 2006


you get the iter, you do stuff on the buffer, when you go to use the
iter, it is invalid

make it mark or use it before you modify

On 4/6/06, Ashi <anu2703 at gmail.com> wrote:
> hello,
>
> i have some problem working with textubffers as folows...
>
>
>  GtkWarning: Invalid text buffer iterator: either the iterator is
> uninitialized, or the characters/pixbufs/widgets in the buffer have been
> modified since the iterator was created.
> You must use marks, character numbers, or line numbers to preserve a
> position across buffer modifications.
> You can apply tags and insert marks without invalidating your iterators,
> but any mutation that affects 'indexable' buffer contents (contents that can
> be referred to by character offset)
> will invalidate all outstanding iterators
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
>
>


--
Nikos Kouremenos


More information about the pygtk mailing list