def METHOD_NAME(dialog, response):
    self.cancellable = False
    self.cancelled = True
    self.dialog.set_deletable(False)
    self.dialog.set_response_sensitive(Gtk.ResponseType.CANCEL, False)
    if callable(self.METHOD_NAME):
        self.METHOD_NAME(dialog, response)