AccelGroup.lock
void lock()Locks the given accelerator group.
Locking an acelerator group prevents the accelerators contained within it to be changed during runtime. Refer to [gtk.accel_map.AccelMap.changeEntry] about runtime accelerator changes.
If called more than once, accel_group remains locked until [gtk.accel_group.AccelGroup.unlock] has been called an equivalent number of times.