Hello, everyone!

I set text to TextView vidget and add style with tags like this:
        tag_table = self.textbuffer.get_tag_table()
        styled_text = gtk.TextTag()
        styled_text.set_property("font", self.font)
        tag_table.add(styled_text)
        iter, iter2 = self.textbuffer.get_bounds()
        self.textbuffer.apply_tag(styled_text, iter, iter2)

It all works out nicely, but when I copy the text into buffer (for
example using ctrl+Insert hot-key) the style is lost, only the text
itself is copied. Is there a way to fix this, please?


Regards,
Paul.
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to