GOffice.ColorGroup

g GObject.Object GObject.Object GOffice.ColorGroup GOffice.ColorGroup GObject.Object->GOffice.ColorGroup

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class fetch (name, context)
class find (name, context)
  add_color (c)

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)
Name Short Description
history-changed  

Fields

Inherited:GObject.Object (1)
Name Type Access Description
context object r  
history [int] r  
name str r  
parent GObject.Object r  

Class Details

class GOffice.ColorGroup(**kwargs)
Bases:GObject.Object
Abstract:No
classmethod fetch(name, context)
Parameters:
  • name (str) – target name
  • context (object or None) – identifying context
Returns:

A GOffice.ColorGroup

Return type:

GOffice.ColorGroup

if name is None or a name not currently in use by another group then a new group is created and returned. If name was None then the new group is given a unique name prefixed by “__cg_autogen_name__” (thereby insuring namespace separation). If name was already used by a group then the reference GOffice.count is incremented and a pointer to the group is returned.

classmethod find(name, context)
Parameters:
  • name (str) – target name
  • context (object or None) – an arbitrary id to identify what context to search in
Returns:

Look up the name/context specific color-group. None if it is not found.

Return type:

GOffice.ColorGroup

No reference is added if it is found.

add_color(c)
Parameters:c (int) – the color

Potentially slide the history to add the new colour. If it was already in the history reorder.

Signal Details

GOffice.ColorGroup.signals.history_changed(color_group)
Signal Name:history-changed
Flags:RUN_LAST
Parameters:color_group (GOffice.ColorGroup) – The object which received the signal