Locks are added and removed using gtk.accel_group.AccelGroup.lock and gtk.accel_group.AccelGroup.unlock.
true if there are 1 or more locks on the accel_group, false otherwise.
Locks are added and removed using gtk.accel_group.AccelGroup.lock and gtk.accel_group.AccelGroup.unlock.