GimpUi.ImageChooser¶
- 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 image |
||
r/w/co |
The label to be used next to the button |
||
r/w/co |
The title to be used for the image selection popup dialog |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GimpUi.ImageChooser(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The chooser contains an optional label and a button which queries the core process to pop up an image selection dialog.
New in version 3.0.
- classmethod new(title, label, image)¶
- Parameters:
- Returns:
A [class`GimpUi`.ImageChooser.
- Return type:
Creates a new
Gtk.Widgetthat lets a user choose an image.When image is
None, initial choice is from context.New in version 3.0.
- get_image()¶
- Returns:
an internal copy of the image which must not be freed.
- Return type:
Gets the currently selected image.
New in version 3.0.
- get_label()¶
- Returns:
the [class`Gtk`.Widget] showing the label text.
- Return type:
Returns the label widget.
New in version 3.0.
- set_image(image)¶
- Parameters:
image (
Gimp.Image) – Image to set.
Sets the currently selected image. This will select the image in both the button and any chooser popup.
New in version 3.0.
Property Details¶
- GimpUi.ImageChooser.props.image¶
- Name:
image- Type:
- Default Value:
- Flags:
The currently selected image.
New in version 3.0.
- GimpUi.ImageChooser.props.label¶
- Name:
label- Type:
- Default Value:
- Flags:
Label text with mnemonic.
New in version 3.0.
- GimpUi.ImageChooser.props.title¶
- Name:
title- Type:
- Default Value:
'Image Selection'- Flags:
The title to be used for the image selection popup dialog.
New in version 3.0.