ColorChooserDialog#

Deprecated since version 4.10: Use ColorDialog instead

class ColorChooserDialog(*args, **kwargs)#

Superclasses: Dialog, Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ColorChooser, ConstraintTarget, Native, Root, ShortcutManager

A dialog for choosing a color.

https://docs.gtk.org/gtk4/colorchooser.png

GtkColorChooserDialog implements the ColorChooser interface and does not provide much API of its own.

To create a GtkColorChooserDialog, use new.

To change the initially selected color, use set_rgba. To get the selected color use get_rgba.

GtkColorChooserDialog has been deprecated in favor of ColorDialog.

CSS nodes#

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

Constructors#

class ColorChooserDialog
classmethod new(title: str | None = None, parent: Window | None = None) Widget#

Creates a new GtkColorChooserDialog.

Deprecated since version 4.10: Use ColorDialog instead

Parameters:
  • title – Title of the dialog

  • parent – Transient parent of the dialog

Properties#

class ColorChooserDialog
props.show_editor: bool#

The type of the None singleton.