:right-sidebar: True MnemonicTrigger =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: MnemonicTrigger(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.ShortcutTrigger`, :class:`~gi.repository.GObject.Object` :Constructors: :: MnemonicTrigger(**properties) new(keyval:int) -> Gtk.MnemonicTrigger Constructors ------------ .. rst-class:: interim-class .. class:: MnemonicTrigger :no-index: .. classmethod:: new(keyval: int) -> ~gi.repository.Gtk.MnemonicTrigger Creates a ``GtkShortcutTrigger`` that will trigger whenever the key with the given ``keyval`` is pressed and mnemonics have been activated. Mnemonics are activated by calling code when a key event with the right modifiers is detected. :param keyval: The keyval to trigger for Methods ------- .. rst-class:: interim-class .. class:: MnemonicTrigger :no-index: .. method:: get_keyval() -> int Gets the keyval that must be pressed to succeed triggering ``self``. Properties ---------- .. rst-class:: interim-class .. class:: MnemonicTrigger :no-index: .. attribute:: props.keyval :type: int The key value for the trigger.