Gtk.BindingSet entries attribute yields only one BindingEntry
Maybe im missing something but a GtkBindingSet should contain all BindingEtrys for that set.
I tried to access them via the
entries attribute, but instead of a list this yields one BindingEntry object
it seems i can access another one with the
hash_next attribute, but thats it.
My Goal is to retrieve all BindingEntrys a TextView currently has
Here my test code
from gi.repository import Gtk from gi.repository import GLib class MyApp(Gtk.Window): def __init__(self): Gtk.Window.__init__(self) self.name = 'window' box = Gtk.Box() textview = Gtk.TextView() box.add(textview) self.add(box) bindingset = Gtk.binding_set_find('GtkTextView') entry = bindingset.entries entry2 = entry.hash_next print(entry) print(entry2) win = MyApp() win.connect("destroy", Gtk.main_quit) win.show_all() Gtk.main()