Gtk4 Show about dialog

I’m porting an app from GTK3 to GTK4 and one thing I’m stuck on is how to show an AboutDialog. In GTK3 I used .run() but that’s of course removed now. I tried .show() and that seemed to work, but upon showing, closing, showing again and on attempting to close again, it doesn’t close. I’m curious as to what I’m doing wrong.

The docs mentionTo make constructing a GtkAboutDialog as convenient as possible, you can use the function gtk_show_about_dialog() , I’m not sure how that translates in PyGObject Introspection, but I’m curious how one would manually manage it anyway.

My current code is basically:

about = Gtk.AboutDialog.new()
about.set_transient_for(window)
about.show()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.