Hey, I posted this question a few days ago on Stackoverflow, but no one responded. Maybe you guys and girls here can help me out with my Problem …
I’m trying to use the method “Gtk::TreeView::set_tooltip_row()” from PyGObject: https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/TreeView.html#Gtk.TreeView.set_tooltip_row
Here is what i am currently doing:
treeView: gtk.TreeView = self.builder.get_object("base_tree_view")
treeView.set_model(base_json_store)
treeView.set_has_tooltip(True)
path: gtk.TreePath = gtk.TreePath.new_from_string("2")
tooltip: gtk.Tooltip = gtk.Tooltip()
tooltip.set_text("soos naaan")
treeView.set_tooltip_row(tooltip, path)
# treeView.set_tooltip_column(0)
I expected that this would show a tooltip on the third row of my GTK::TreeView (that i created using Glade), but it’s not working. There is no tooltip show when i hover with my mouse over this row.
treeView.set_tooltip_column(0)
works fine (showing tooltips), so why isn’t treeView.set_tooltip_row()
working?
I think the problem here could be, that you can’t create a Tooltip using the default constructor, but where else should it get the Tooltip from?
Best wishes