I'm experimenting with the gtk2 TextView/Model structure, particularly
the ability to control editability in specific regions using tags.  I
have the following code snippet:

        back_buf = back_text.get_buffer()
        tag = back_buf.create_tag("static")
        tag.set_property("editable", FALSE)
        back_buf.insert_with_tags(back_buf.get_start_iter(),
                                  "Childhood", tag)

The intent here is to insert an uneditable header at the beginning of
the textview.  That works - the word childhood is there and is
uneditable.  Text can be inserted after the word (which is what I want)
and before (which is not).

Any ideas on how I can create a region of text at the start of a buffer
than can't be edited and can be inserted after but not before?

Thanks,
Jay


_______________________________________________
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