GimpUi.ItemChooser¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
The currently selected item |
||
r/w/co |
The |
||
r/w/co |
The label to be used next to the button |
||
r/w/co |
The title to be used for the item selection popup dialog |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GimpUi.ItemChooser(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The chooser contains an optional label and a button which queries the core process to pop up a item selection dialog.
New in version 3.2.
- classmethod new(title, label, item_type, item)¶
- Parameters:
- Returns:
A [class`GimpUi`.ItemChooser.
- Return type:
Creates a new
Gtk.Widgetthat lets a user choose a item which must be of type item_type. item_type of valuesGObject.TYPE_NONEand %GIMP_TYPE_ITEM are equivalent. Otherwise it must be a subtype of %GIMP_TYPE_ITEM.When item is
None, initial choice is from context.New in version 3.2.
- get_item()¶
- Returns:
an internal copy of the item which must not be freed.
- Return type:
Gets the currently selected item.
New in version 3.2.
- get_label()¶
- Returns:
the [class`Gtk`.Widget] showing the label text.
- Return type:
Returns the label widget.
New in version 3.2.
Property Details¶
- GimpUi.ItemChooser.props.item¶
- Name:
item- Type:
- Default Value:
- Flags:
The currently selected item.
New in version 3.0.
- GimpUi.ItemChooser.props.item_type¶
- Name:
item-type- Type:
- Default Value:
<GType GimpItem>- Flags:
Allowed item types, which must be either GIMP_TYPE_ITEM or a subtype.
New in version 3.0.
- GimpUi.ItemChooser.props.label¶
- Name:
label- Type:
- Default Value:
- Flags:
Label text with mnemonic.
New in version 3.0.
- GimpUi.ItemChooser.props.title¶
- Name:
title- Type:
- Default Value:
'Item Selection'- Flags:
The title to be used for the item selection popup dialog.
New in version 3.0.