Gtk.ColorChooserWidget

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ColorChooser Gtk.ColorChooser GObject.GInterface->Gtk.ColorChooser Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Box Gtk.Box Gtk.ColorChooserWidget Gtk.ColorChooserWidget Gtk.Box->Gtk.ColorChooserWidget Gtk.Buildable->Gtk.Widget Gtk.ColorChooser->Gtk.ColorChooserWidget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:None

Properties

Inherited:Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1), Gtk.ColorChooser (2)
Name Type Flags Short Description
show-editor bool r/w Show editor

Child Properties

Inherited:Gtk.Box (5)

Style Properties

Inherited:Gtk.Widget (17)

Fields

Inherited:Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.ColorChooser (1)
Name Type Access Description
parent_instance Gtk.Box r  

Class Details

class Gtk.ColorChooserWidget(*args, **kwargs)
Bases:Gtk.Box, Gtk.ColorChooser
Abstract:No
Structure:Gtk.ColorChooserWidgetClass

The Gtk.ColorChooserWidget widget lets the user select a color. By default, the chooser presents a predefined palette of colors, plus a small number of settable custom colors. It is also possible to select a different color with the single-color editor. To enter the single-color editing mode, use the context menu of any color of the palette, or use the ‘+’ button to add a new custom color.

The chooser automatically remembers the last selection, as well as custom colors.

To change the initially selected color, use Gtk.ColorChooser.set_rgba(). To get the selected color use Gtk.ColorChooser.get_rgba().

The Gtk.ColorChooserWidget is used in the Gtk.ColorChooserDialog to provide a dialog for selecting colors.

CSS names

Gtk.ColorChooserWidget has a single CSS node with name colorchooser.

New in version 3.4.

classmethod new()[source]
Returns:a new Gtk.ColorChooserWidget
Return type:Gtk.Widget

Creates a new Gtk.ColorChooserWidget.

New in version 3.4.

Property Details

Gtk.ColorChooserWidget.props.show_editor
Name:show-editor
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

The ::show-editor property is True when the color chooser is showing the single-color editor. It can be set to switch the color chooser into single-color editing mode.

New in version 3.4.