GOffice.ColorPalette

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.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GOffice.ColorPalette GOffice.ColorPalette Gtk.Box Gtk.Box Gtk.Box->GOffice.ColorPalette Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

make_menu (no_color_label, default_color, cg, custom_dialog_title, current_color)

class

new (no_color_label, default_color, cg)

class

query (n, color)

get_current_color (is_default, is_custom)

set_allow_alpha (allow_alpha)

set_color_to_default ()

set_current_color (color)

set_group (cg)

set_title (title)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

color-changed

display-custom-dialog

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GOffice.ColorPalette(*args, **kwargs)
Bases:

Gtk.Box

Abstract:

No

classmethod make_menu(no_color_label, default_color, cg, custom_dialog_title, current_color)
Parameters:
Returns:

a submenu with a palette of colours. Caller is responsible for creating an item to point to the submenu.

Return type:

Gtk.Widget

classmethod new(no_color_label, default_color, cg)
Parameters:
Returns:

A new palette

Return type:

Gtk.Widget

classmethod query(n, color)
Parameters:
Return type:

bool

get_current_color(is_default, is_custom)
Parameters:
  • is_default (bool) –

  • is_custom (bool) –

Return type:

int

set_allow_alpha(allow_alpha)
Parameters:

allow_alpha (bool) –

set_color_to_default()
set_current_color(color)
Parameters:

color (int) –

set_group(cg)
Parameters:

cg (GOffice.ColorGroup) – GOffice.ColorGroup

set_title(title)
Parameters:

title (str) –

Signal Details

GOffice.ColorPalette.signals.color_changed(color_palette, object, p0, p1, p2)
Signal Name:

color-changed

Flags:

RUN_LAST

Parameters:
GOffice.ColorPalette.signals.display_custom_dialog(color_palette, object)
Signal Name:

display-custom-dialog

Flags:

RUN_LAST

Parameters: