Gimp.Image.set_active_layer

@accepts(Gimp.Image, Gimp.Layer)
@returns(bool)
def set_active_layer(self, active_layer):
    # Python wrapper for gimp_image_set_active_layer()
  

Sets the specified image's active layer.

If the layer exists, it is set as the active layer in the image. Any previous active layer or channel is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.

self

The image.

active_layer

The new image active layer.

Returns