GimpUi.StringComboBox¶
- Subclasses:
None
Methods¶
- Inherited:
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 |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Ellipsize mode for the text cell renderer |
||
r/w/co |
The model column that holds the label |
||
r/w/en |
Value of active item |
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.StringComboBox(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.ComboBoxsubclass to select strings.- classmethod new(model, id_column, label_column)¶
- Parameters:
model (
Gtk.TreeModel) – aGtk.TreeModelid_column (
int) – the model column of the IDlabel_column (
int) – the modl column of the label
- Returns:
a new
GimpUi.StringComboBox.- Return type:
New in version 2.4.
- get_active()¶
-
Retrieves the value of the selected (active) item in the self.
New in version 2.4.
- set_active(id)¶
- Parameters:
id (
str) – the ID of the item to select- Returns:
Trueon success orFalseif there was no item for this value.- Return type:
Looks up the item that belongs to the given id and makes it the selected item in the self.
New in version 2.4.
- set_sensitivity(func, *data)¶
- Parameters:
func (
GimpUi.StringSensitivityFunc) – a function that returns a boolean value, orNoneto unset
Sets a function that is used to decide about the sensitivity of rows in the self. Use this if you want to set certain rows insensitive.
Calling
Gtk.Widget.queue_draw() on the self will cause the sensitivity to be updated.New in version 3.0.
Property Details¶
- GimpUi.StringComboBox.props.ellipsize¶
- Name:
ellipsize- Type:
- Default Value:
- Flags:
Specifies the preferred place to ellipsize text in the combo-box, if the cell renderer does not have enough room to display the entire string.
New in version 2.4.
- GimpUi.StringComboBox.props.label_column¶
- Name:
label-column- Type:
- Default Value:
0- Flags:
The column in the associated
Gtk.TreeModelthat holds strings to be used as labels in the combo-box.New in version 2.4.
- GimpUi.StringComboBox.props.value¶
- Name:
value- Type:
- Default Value:
- Flags:
The active value (different from the “active” property of
Gtk.ComboBoxwhich is the active index).New in version 3.0.