Gimp.Palette.add_entry

@accepts(Gimp.Palette, unicode, Gegl.Color, int)
@returns(bool)
def add_entry(self, entry_name, color, entry_num):
    # Python wrapper for gimp_palette_add_entry()
  

Appends an entry to the palette.

Appends an entry to the palette. Neither color nor name must be unique within the palette. When name is the empty string, this sets the entry name to \"Untitled\". Returns the index of the entry. Returns an error when palette is not editable.

Since 2.2

self

The palette.

entry_name

A name for the entry.

color

The color for the added entry.

entry_num

The index of the added entry.

Returns