in reply to Paolo Redaelli

Why is it a pain?


I was quite dramatic here :)

it's a nice binding, very pythonic, without being too different from GObject api. Given the obvious different things (like define a gobject subclass property. Or how enums are named, etc), you can read gtk docs docs.gtk.org/gtk4/ and write almost correct code at first try.

But then you want to do something more exotic, like define your enum. you can't. And many other little thing.

Or try to assign a complex model to an AdwComboRow, then you may want to assign a Gtk.ClosureExpression, which for what I can tell it can't be created.

Unfortunately the project looks like it's in need of some love.

And TBH sometimes Gtk4 it's in your way on itself. Why GtkSearchBar is final? it's a container. It need a child element to work. I would like to subclass it, attach an ui template, setup the logic into the subclass and then reuse this subclass in another ui template. You can't, because it's final. You have to wrap it in another non-final widget, let's say a GtkBox.

This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.