Gtk.BindingEntry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
binding_set |
r/w |
binding set this entry belongs to |
|
destroyed |
r/w |
implementation detail |
|
hash_next |
r/w |
implementation detail |
|
in_emission |
r/w |
implementation detail |
|
keyval |
r/w |
key value to match |
|
marks_unbound |
r/w |
implementation detail |
|
modifiers |
r/w |
key modifiers to match |
|
set_next |
r/w |
linked list of entries maintained by binding set |
|
signals |
r/w |
action signals of this entry |
Methods¶
class |
|
class |
|
class |
|
class |
|
Details¶
- class Gtk.BindingEntry¶
Each key binding element of a binding sets binding list is represented by a
Gtk.BindingEntry
.- classmethod add_signal_from_string(binding_set, signal_desc)[source]¶
- Parameters:
binding_set (
Gtk.BindingSet
) – aGtk.BindingSet
signal_desc (
str
) – a signal description
- Returns:
GLib.TokenType.NONE
if the signal was successfully parsed and added, the expected token otherwise- Return type:
Parses a signal description from signal_desc and incorporates it into binding_set.
Signal descriptions may either bind a key combination to one or more signals:
bind "key" { "signalname" (param, ...) ... }
Or they may also unbind a key combination:
unbind "key"
Key combinations must be in a format that can be parsed by
Gtk.accelerator_parse
().New in version 3.0.
- classmethod add_signall(binding_set, keyval, modifiers, signal_name, binding_args)[source]¶
- Parameters:
binding_set (
Gtk.BindingSet
) – aGtk.BindingSet
to add a signal tokeyval (
int
) – key valuemodifiers (
Gdk.ModifierType
) – key modifiersignal_name (
str
) – signal name to be boundbinding_args ([
Gtk.BindingArg
]) – list ofGtk.BindingArg
signal arguments
Override or install a new key binding for keyval with modifiers on binding_set.
- classmethod remove(binding_set, keyval, modifiers)[source]¶
- Parameters:
binding_set (
Gtk.BindingSet
) – aGtk.BindingSet
to remove an entry ofkeyval (
int
) – key value of binding to removemodifiers (
Gdk.ModifierType
) – key modifier of binding to remove
Remove a binding previously installed via gtk_binding_entry_add_signal() on binding_set.
- classmethod skip(binding_set, keyval, modifiers)[source]¶
- Parameters:
binding_set (
Gtk.BindingSet
) – aGtk.BindingSet
to skip an entry ofkeyval (
int
) – key value of binding to skipmodifiers (
Gdk.ModifierType
) – key modifier of binding to skip
Install a binding on binding_set which causes key lookups to be aborted, to prevent bindings from lower priority sets to be activated.
New in version 2.12.