Gtk.KeyvalTrigger

g GObject.Object GObject.Object Gtk.ShortcutTrigger Gtk.ShortcutTrigger GObject.Object->Gtk.ShortcutTrigger Gtk.KeyvalTrigger Gtk.KeyvalTrigger Gtk.ShortcutTrigger->Gtk.KeyvalTrigger

Subclasses:

None

Methods

Inherited:

Gtk.ShortcutTrigger (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (keyval, modifiers)

get_keyval ()

get_modifiers ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

keyval

int

r/w/co

modifiers

Gdk.ModifierType

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.KeyvalTrigger(**kwargs)
Bases:

Gtk.ShortcutTrigger

Abstract:

No

Structure:

Gtk.KeyvalTriggerClass

A GtkShortcutTrigger that triggers when a specific keyval and modifiers are pressed.

classmethod new(keyval, modifiers)[source]
Parameters:
  • keyval (int) – The keyval to trigger for

  • modifiers (Gdk.ModifierType) – the modifiers that need to be present

Returns:

A new GtkShortcutTrigger

Return type:

Gtk.ShortcutTrigger

Creates a GtkShortcutTrigger that will trigger whenever the key with the given keyval and modifiers is pressed.

get_keyval()[source]
Returns:

the keyval

Return type:

int

Gets the keyval that must be pressed to succeed triggering self.

get_modifiers()[source]
Returns:

the modifiers

Return type:

Gdk.ModifierType

Gets the modifiers that must be present to succeed triggering self.

Property Details

Gtk.KeyvalTrigger.props.keyval
Name:

keyval

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The key value for the trigger.

Gtk.KeyvalTrigger.props.modifiers
Name:

modifiers

Type:

Gdk.ModifierType

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The key modifiers for the trigger.