I’m developing Gtk based application with GtkTextView.
I created a GtkTextBuffer and set few tags there.
Here’s my code
def tag(self, line, msg, bc_color="red"):
start = self.buff.get_iter_at_line(line)
end = self.buff.get_iter_at_line(line)
end.forward_line()
tag = Gtk.TextTag()
tag.set_property("background", "red")
self.buff.get_tag_table().add(tag)
self.buff.apply_tag(tag, start, end)
this method is created in loop in order to set few tags to my text
it looks like this

What I want is to add some pop-up title there, similar to what you get if you set title attribute in HTML. It can be configured to show on mouse hover.
Can you please recommend me something?
You need to combine text tags with a tooltip. See this tutorial for an example which I believe does just what you want.