# Gimp.Image.set_selected_channels

    @accepts(Gimp.Image, int, [Gimp.Channel])
    @returns(bool)
    def set_selected_channels(self, num_channels, channels):
        # Python wrapper for gimp_image_set_selected_channels()

Sets the specified image's selected channels.

The channels are set as the selected channels in the image. Any previous selected layers or channels are unselected. An exception is a previously existing floating selection, in which case this procedure will return an execution error.

Since 3.0.0

self

  The image.

num_channels

  The number of channels to select.

channels

  The list of channels to select.

Returns