Gimp.PlugIn.persistent_enable
@accepts(Gimp.PlugIn)
@returns(none)
def persistent_enable(self):
# Python wrapper for gimp_plug_in_persistent_enable()
Enables asynchronous processing of messages from the main GIMP application.
Normally, a plug-in is not called by GIMP except for the call to the procedure it implements. All subsequent communication is triggered by the plug-in and all messages sent from GIMP to the plug-in are just answers to requests the plug-in made.
If the plug-in however registered temporary procedures using [method@PlugIn.add_temp_procedure], it needs to be able to receive requests to execute them. Usually this will be done by running [method@PlugIn.persistent_process] in an endless loop.
If the plug-in cannot use [method@PlugIn.persistent_process], i.e. if it has a GUI and is hanging around in a [struct@GLib.MainLoop], it must call [method@PlugIn.persistent_enable].
Note that the plug-in does not need to be a [enum@Gimp.PDBProcType.PERSISTENT] to register temporary procedures.
See also: [method@PlugIn.add_temp_procedure].
Since 3.0
- self
A plug-in