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 mention
To 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()