KeyvalTrigger#

class KeyvalTrigger(**properties: Any)#

Superclasses: ShortcutTrigger, Object

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

Constructors#

class KeyvalTrigger
classmethod new(keyval: int, modifiers: ModifierType) ShortcutTrigger#

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

Parameters:
  • keyval – The keyval to trigger for

  • modifiers – the modifiers that need to be present

Methods#

class KeyvalTrigger
get_keyval() int#

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

get_modifiers() ModifierType#

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

Properties#

class KeyvalTrigger
props.keyval: int#

The type of the None singleton.

props.modifiers: ModifierType#

The type of the None singleton.