GimpUi.EnumComboBox

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.CellEditable Gtk.CellEditable GObject.GInterface->Gtk.CellEditable Gtk.CellLayout Gtk.CellLayout GObject.GInterface->Gtk.CellLayout GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.EnumComboBox GimpUi.EnumComboBox GimpUi.IntComboBox GimpUi.IntComboBox GimpUi.IntComboBox->GimpUi.EnumComboBox Gtk.Bin Gtk.Bin Gtk.ComboBox Gtk.ComboBox Gtk.Bin->Gtk.ComboBox Gtk.Buildable->Gtk.Widget Gtk.CellEditable->Gtk.ComboBox Gtk.CellLayout->Gtk.ComboBox Gtk.ComboBox->GimpUi.IntComboBox Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

GimpUi.IntComboBox (11), Gtk.ComboBox (40), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.CellLayout (9)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (enum_type)

class

new_with_model (enum_store)

set_icon_prefix (icon_prefix)

Virtual Methods

Inherited:

Gtk.ComboBox (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.CellLayout (9)

Properties

Inherited:

GimpUi.IntComboBox (4), Gtk.ComboBox (16), Gtk.Container (3), Gtk.Widget (39), Gtk.CellEditable (1)

Style Properties

Inherited:

Gtk.ComboBox (4), Gtk.Widget (17)

Signals

Inherited:

Gtk.ComboBox (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2)

Fields

Inherited:

Gtk.ComboBox (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2)

Name

Type

Access

Description

parent_instance

GimpUi.IntComboBox

r

Class Details

class GimpUi.EnumComboBox(**kwargs)
Bases:

GimpUi.IntComboBox

Abstract:

No

Structure:

GimpUi.EnumComboBoxClass

A Gtk.ComboBox subclass for selecting an enum value.

classmethod new(enum_type)
Parameters:

enum_type (GObject.GType) – the GObject.GType of an enum.

Returns:

a new GimpUi.EnumComboBox.

Return type:

Gtk.Widget

Creates a Gtk.ComboBox readily filled with all enum values from a given enum_type. The enum needs to be registered to the type system. It should also have Gimp.EnumDesc descriptions registered that contain translatable value names. This is the case for the enums used in the GIMP PDB functions.

This is just a convenience function. If you need more control over the enum values that appear in the combo_box, you can create your own GimpUi.EnumStore and use GimpUi.EnumComboBox.new_with_model().

New in version 2.4.

classmethod new_with_model(enum_store)
Parameters:

enum_store (GimpUi.EnumStore) – a GimpUi.EnumStore to use as the model

Returns:

a new GimpUi.EnumComboBox.

Return type:

Gtk.Widget

Creates a Gtk.ComboBox for the given enum_store.

New in version 2.4.

set_icon_prefix(icon_prefix)
Parameters:

icon_prefix (str) – a prefix to create icon names from enum values

Attempts to create icons for all items in the self. See GimpUi.EnumStore.set_icon_prefix() to find out what to use as icon_prefix.

New in version 2.10.