> content, but cannot touch the title (see the attached example).

...which of course I forgot...

BTW, I use PyGTK 2.6.3 on Gtk+ 2.6.10 (debian testing)

Frédéric

import pygtk
pygtk.require('2.0')

import gtk

view = gtk.TextView()
view.set_size_request(200,200)

buff = view.get_buffer()

# Insert mutable and immutable text
buff.create_tag ('immutable', editable=False)

i = buff.get_start_iter()

buff.insert_with_tags_by_name(i, 'Immutable section\n', 'immutable')
buff.insert_with_tags_by_name(i, 'Mutable section')
buff.insert_with_tags_by_name(i, '\nImmutable section\n', 'immutable')

main = gtk.Window()
main.add(view)
main.show_all()

gtk.main()
_______________________________________________
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