<?xml version="1.0"?>
<page id="Gimp.ProcedureConfig.end_run"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.ProcedureConfig" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_procedure_config_end_run</api:name>
      <api:arg>
        <api:type>Gimp.ProcedureConfig</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gimp.PDBStatusType</api:type>
        <api:name>status</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.ProcedureConfig.end_run</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.ProcedureConfig, Gimp.PDBStatusType)
@returns(none)
def end_run(self, status):
    # Python wrapper for gimp_procedure_config_end_run()
  </code></synopsis>
  <p>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.</p>  <p>If the @run_mode passed to [method@ProcedureConfig.end_run] was
<link xref="Gimp.RunMode"/>.interactive, <code>self</code> is saved as last used values to be
used when the procedure runs again. Additionally, if the <link xref="Gimp.Image"/>
passed to [method@ProcedureConfig.begin_run] was not <code>None</code>, <code>self</code> is
attached to @image as last used values for this image using a
<link xref="Gimp.Parasite"/> and [method@Image.attach_parasite].</p>  <p>If @run_mode was not <link xref="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.</p>  <p>After a <link xref="Gimp.RunMode"/>.interactive run, <link xref="Gimp.ArgumentSync"/>.parasite
values that have been changed are written back to their
corresponding image parasite.</p>  <p>See [method@ProcedureConfig.begin_run].</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="Gimp.ProcedureConfig"/></p>
</item>
<item>
<title><code>status</code></title>
  <p>the return status of the [class@Procedure]'s run()</p>
</item>
</terms>

</page>
