GimpUi.EnumComboBox¶
- 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  | 
  | 
class  | 
  | 
  | 
Virtual Methods¶
Properties¶
Style Properties¶
- Inherited:
 
Signals¶
Fields¶
- Inherited:
 Gtk.ComboBox (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.CellEditable (2)
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class GimpUi.EnumComboBox(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A
Gtk.ComboBoxsubclass for selecting an enum value.- classmethod new(enum_type)¶
 - Parameters:
 enum_type (
GObject.GType) – theGObject.GTypeof an enum.- Returns:
 a new
GimpUi.EnumComboBox.- Return type:
 
Creates a
Gtk.ComboBoxreadily filled with all enum values from a given enum_type. The enum needs to be registered to the type system. It should also haveGimp.EnumDescdescriptions 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.EnumStoreand useGimpUi.EnumComboBox.new_with_model().New in version 2.4.
- classmethod new_with_model(enum_store)¶
 - Parameters:
 enum_store (
GimpUi.EnumStore) – aGimpUi.EnumStoreto use as the model- Returns:
 a new
GimpUi.EnumComboBox.- Return type:
 
Creates a
Gtk.ComboBoxfor 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.