pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
127 stars 36 forks source link

Gtk.TreeView.do_unselect_all() without arguments #167

Open buhtz opened 6 years ago

buhtz commented 6 years ago

See

Gtk.TreeView.do_unselect_all() without arguments has no arguments there. But when calling it in my code I see

self.do_unselect_all()

TypeError: Gtk.TreeView.unselect_all() takes exactly 1 argument (0 given)

lazka commented 6 years ago

self.do_unselect_all(self) should work.

I agree that the docs should be improved here

some related background: https://gitlab.gnome.org/GNOME/pygobject/issues/58