GimpUi.DrawableChooser¶
- 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 drawable  | 
||
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 drawable selection popup dialog  | 
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.DrawableChooser(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The chooser contains an optional label and a button which queries the core process to pop up a drawable selection dialog.
New in version 3.0.
- classmethod new(title, label, drawable_type, drawable)¶
 - Parameters:
 title (
strorNone) – Title of the dialog to use orNoneto use the default title.drawable_type (
GObject.GType) – the acceptable subtype of choosable drawables.drawable (
Gimp.DrawableorNone) – Initial drawable.
- Returns:
 A [class`GimpUi`.DrawableChooser.
- Return type:
 
Creates a new
Gtk.Widgetthat lets a user choose a drawable which must be of type drawable_type. drawable_type of valuesGObject.TYPE_NONEand %GIMP_TYPE_DRAWABLE are equivalent. Otherwise it must be a subtype of %GIMP_TYPE_DRAWABLE.When drawable is
None, initial choice is from context.New in version 3.0.
- get_drawable()¶
 - Returns:
 an internal copy of the drawable which must not be freed.
- Return type:
 
Gets the currently selected drawable.
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_drawable(drawable)¶
 - Parameters:
 drawable (
Gimp.Drawable) – Drawable to set.
Sets the currently selected drawable. This will select the drawable in both the button and any chooser popup.
New in version 3.0.
Property Details¶
- GimpUi.DrawableChooser.props.drawable¶
 - Name:
 drawable- Type:
 - Default Value:
 - Flags:
 
The currently selected drawable.
New in version 3.0.
- GimpUi.DrawableChooser.props.drawable_type¶
 - Name:
 drawable-type- Type:
 - Default Value:
 <GType GimpDrawable>- Flags:
 
Allowed drawable types, which must be either GIMP_TYPE_DRAWABLE or a subtype.
New in version 3.0.
- GimpUi.DrawableChooser.props.label¶
 - Name:
 label- Type:
 - Default Value:
 - Flags:
 
Label text with mnemonic.
New in version 3.0.
- GimpUi.DrawableChooser.props.title¶
 - Name:
 title- Type:
 - Default Value:
 'Drawable Selection'- Flags:
 
The title to be used for the drawable selection popup dialog.
New in version 3.0.