This parameter seems to be deprecated since at least Py G Object 3.0
Avoid warning: gtk_main_quit: assertion 'main_loops != NULL' failed

Apparently you’re not meant to call Gtk.main_quit() unless Gtk.main() is
running.