As in topic I have TextView() and TextBuffer() added to it, I also have Tags created so when I select text and click button it will make text BOLD or something. Up to this point all works well, now I need to be able to go through all text in TextView and find what Tag is applied and where, I need this so I can format text by adding stuff before and after tagged text.
here is part of the code:
self.textview = Gtk.TextView() self.buffer = self.textview.get_buffer() self.scrolledwindow.add(self.textview) self.textview.show() self.tag_bold = self.buffer.create_tag("bold", weight=Pango.Weight.BOLD)
It would be best if I could get output like, "test text" is "bold".
Thanks for any help.