def METHOD_NAME(_dialog, response):
    if response != Gtk.ResponseType.ACCEPT:
        return
    path = dialog.get_file().get_path()
    self.parent.add_resource(self.resource, path)
    self.set_subtitle(path)