# Gimp.ProcedureConfig.end_run

    @accepts(Gimp.ProcedureConfig, Gimp.PDBStatusType)
    @returns(none)
    def end_run(self, status):
        # Python wrapper for gimp_procedure_config_end_run()

This function is the counterpart of [method@ProcedureConfig.begin_run] and must always be called in pairs in a procedure's run(), before returning return values.

If the @run_mode passed to [method@ProcedureConfig.end_run] was Gimp.RunMode.interactive, self is saved as last used values to be used when the procedure runs again. Additionally, if the Gimp.Image passed to [method@ProcedureConfig.begin_run] was not None, self is attached to @image as last used values for this image using a Gimp.Parasite and [method@Image.attach_parasite].

If @run_mode was not Gimp.RunMode.noninteractive, this function also conveniently calls [func@displays_flush], which is what most procedures want and doesn't do any harm if called redundantly.

After a Gimp.RunMode.interactive run, Gimp.ArgumentSync.parasite values that have been changed are written back to their corresponding image parasite.

See [method@ProcedureConfig.begin_run].

Since 3.0

self

  a Gimp.ProcedureConfig

status

  the return status of the [class@Procedure]'s run()