Dazzle.ShortcutContext

g Dazzle.ShortcutContext Dazzle.ShortcutContext GObject.Object GObject.Object GObject.Object->Dazzle.ShortcutContext

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name)

activate (widget, chord)

add_action (accel, detailed_action_name)

add_command (accel, command)

add_signalv (accel, signal_name, values)

get_name ()

load_from_data (data, len)

load_from_resource (resource_path)

remove (accel)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

name

str

r/w/co

Name

use-binding-sets

bool

r/w

If the context should allow activation using binding sets

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Dazzle.ShortcutContext(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Dazzle.ShortcutContextClass

classmethod new(name)
Parameters:

name (str) –

Return type:

Dazzle.ShortcutContext

activate(widget, chord)
Parameters:
Return type:

Dazzle.ShortcutMatch

add_action(accel, detailed_action_name)
Parameters:
  • accel (str) –

  • detailed_action_name (str) –

add_command(accel, command)
Parameters:
  • accel (str) –

  • command (str) –

add_signalv(accel, signal_name, values)
Parameters:
  • accel (str) – the accelerator for the shortcut

  • signal_name (str) – the name of the signal

  • values ([GObject.Value] or None) – The values to use when calling the signal.

This is similar to dzl_shortcut_context_add_signal() but is easier to use from language bindings.

get_name()
Return type:

str

load_from_data(data, len)
Parameters:
  • data (str) –

  • len (int) –

Raises:

GLib.Error

Return type:

bool

load_from_resource(resource_path)
Parameters:

resource_path (str) –

Raises:

GLib.Error

Return type:

bool

remove(accel)
Parameters:

accel (str) –

Return type:

bool

Property Details

Dazzle.ShortcutContext.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Name

Dazzle.ShortcutContext.props.use_binding_sets
Name:

use-binding-sets

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

If the context should allow activation using binding sets