AccelGroup.connect

Installs an accelerator in this group. When accel_group is being activated in response to a call to gtk.global.accelGroupsActivate, closure will be invoked if the accel_key and accel_mods from gtk.global.accelGroupsActivate match those of this connection.

The signature used for the closure is that of #GtkAccelGroupActivate.

Note that, due to implementation details, a single closure can only be connected to one accelerator group.

Parameters

accelKey uint

key value of the accelerator

accelMods gdk.types.ModifierType

modifier combination of the accelerator

accelFlags gtk.types.AccelFlags

a flag mask to configure this accelerator

closure gobject.closure.Closure

closure to be executed upon accelerator activation