GimpUi.ColorButton
from gi.repository import GimpUi
color_button = GimpUi.ColorButton(area_height=value, area_width=value, color=value, color_config=value, continuous_update=value, title=value, type=value)
This widget provides a simple button with a preview showing the color.
On click a color selection dialog is opened. Additionally the button supports Drag and Drop and has a right-click menu that allows one to choose the color from the current FG or BG color. If the user changes the color, the "color-changed" signal is emitted.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Bin
-
Gtk.Button
-
GimpUi.Button
- GimpUi.ColorButton
-
-
-
-
-
-
Methods
- GimpUi.ColorButton.get_color
- GimpUi.ColorButton.get_title
- GimpUi.ColorButton.get_ui_manager
- GimpUi.ColorButton.get_update
- GimpUi.ColorButton.has_alpha
- GimpUi.ColorButton.set_color
- GimpUi.ColorButton.set_color_config
- GimpUi.ColorButton.set_title
- GimpUi.ColorButton.set_type
- GimpUi.ColorButton.set_update