GimpUi.ImageComboBox

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.ImageComboBox GimpUi.ImageComboBox GimpUi.IntComboBox GimpUi.IntComboBox GimpUi.IntComboBox->GimpUi.ImageComboBox 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 (constraint)

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)

Class Details

class GimpUi.ImageComboBox(**kwargs)
Bases:

GimpUi.IntComboBox

Abstract:

No

Structure:

GimpUi.ImageComboBoxClass

A widget providing a popup menu of images.

classmethod new(constraint)
Parameters:

constraint (GimpUi.ImageConstraintFunc or None) – A GimpUi.ImageConstraintFunc or None

Returns:

a new GimpUi.IntComboBox.

Return type:

Gtk.Widget

Creates a new GimpUi.IntComboBox filled with all currently opened images. If a constraint function is specified, it is called for each image and only if the function returns True, the image is added to the combobox.

You should use GimpUi.IntComboBox.connect() to initialize and connect the combo. Use GimpUi.IntComboBox.set_active() to get the active image ID and GimpUi.IntComboBox.get_active() to retrieve the ID of the selected image.

New in version 2.2.