Gtk.ColorChooserDialog

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ColorChooser Gtk.ColorChooser GObject.GInterface->Gtk.ColorChooser Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Native Gtk.Native GObject.GInterface->Gtk.Native Gtk.Root Gtk.Root GObject.GInterface->Gtk.Root Gtk.ShortcutManager Gtk.ShortcutManager GObject.GInterface->Gtk.ShortcutManager GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ColorChooserDialog Gtk.ColorChooserDialog Gtk.ColorChooser->Gtk.ColorChooserDialog Gtk.ConstraintTarget->Gtk.Widget Gtk.Dialog Gtk.Dialog Gtk.Dialog->Gtk.ColorChooserDialog Gtk.Window Gtk.Window Gtk.Native->Gtk.Window Gtk.Root->Gtk.Window Gtk.ShortcutManager->Gtk.Window Gtk.Widget->Gtk.Window Gtk.Window->Gtk.Dialog

Example

../_images/ColorChooserDialog.png
Subclasses:

None

Methods

Inherited:

Gtk.Dialog (11), Gtk.Window (62), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6), Gtk.Root (3), Gtk.ColorChooser (5)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (title, parent)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.ShortcutManager (2), Gtk.ColorChooser (4)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (25), Gtk.Widget (34), Gtk.Accessible (1), Gtk.ColorChooser (2)

Name

Type

Flags

Short Description

show-editor

bool

r/w

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1), Gtk.ColorChooser (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1), Gtk.ColorChooser (1)

Class Details

class Gtk.ColorChooserDialog(*args, **kwargs)
Bases:

Gtk.Dialog, Gtk.ColorChooser

Abstract:

No

A dialog for choosing a color.

An example Gtk.ColorChooserDialog

GtkColorChooserDialog implements the [iface`Gtk`.ColorChooser] interface and does not provide much API of its own.

To create a GtkColorChooserDialog, use [ctor`Gtk`.ColorChooserDialog.new].

To change the initially selected color, use [method`Gtk`.ColorChooser.set_rgba]. To get the selected color use [method`Gtk`.ColorChooser.get_rgba].

GtkColorChooserDialog has been deprecated in favor of [class`Gtk`.ColorDialog].

CSS nodes

GtkColorChooserDialog has a single CSS node with the name window and style class .colorchooser.

Deprecated since version 4.10: Use [class`Gtk`.ColorDialog] instead

classmethod new(title, parent)[source]
Parameters:
  • title (str or None) – Title of the dialog

  • parent (Gtk.Window or None) – Transient parent of the dialog

Returns:

a new GtkColorChooserDialog

Return type:

Gtk.Widget

Creates a new GtkColorChooserDialog.

Deprecated since version 4.10: Use [class`Gtk`.ColorDialog] instead

Property Details

Gtk.ColorChooserDialog.props.show_editor
Name:

show-editor

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE