Gtk.ColorChooserWidget¶
| Subclasses: | None | 
|---|
Methods¶
| class | new() | 
Virtual Methods¶
| Inherited: | Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.ColorChooser (4) | 
|---|
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) | 
|---|
Signals¶
| Inherited: | Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.ColorChooser (1) | 
|---|
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.ColorChooserWidgetwidget 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.ColorChooserWidgetis used in the- Gtk.ColorChooserDialogto provide a dialog for selecting colors.- CSS names
 - Gtk.ColorChooserWidgethas 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-editorproperty is- Truewhen 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.