We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gtk.NoSelection.__init__
https://github.com/pygobject/pygobject-stubs/blob/master/src/gi-stubs/repository/_Gtk4.pyi#L10709
model=Gtk.NoSelection(Gtk.StringList.new(["A", "B", "C"])), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
Use Gtk.NoSelection.new (very weird API bindings)
Gtk.NoSelection.new
The text was updated successfully, but these errors were encountered:
I think the introspection is wrong here for some reason but i cant find the error in https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtknoselection.c#L273 and idea @mat-xc
Sorry, something went wrong.
I am not sure I am following. It's correct for __init__ to take 0 arguments. It only allows kwargs arguments.
__init__
ah ok so is this true for all inits in GTK4? Is this something PyGObject enforces ? this means we could specifiy this making the init
def init(self, * , model: Gio.ListModel = ... )
We already discussed it here.
I am on mobile right now, if your solution works I thinks it is a good idea
No branches or pull requests
Gtk.NoSelection.__init__
https://github.com/pygobject/pygobject-stubs/blob/master/src/gi-stubs/repository/_Gtk4.pyi#L10709
Actual error
Solution
Use
Gtk.NoSelection.new
(very weird API bindings)Version info
The text was updated successfully, but these errors were encountered: