window.py : Replace deprecated add_accelerator()

Use set_accels_for_action method instead.
3 jobs for patch-1 in 21 minutes and 51 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Check
passed #4842
pep8

00:05:04

passed #4841
pyflakes

00:05:14

 
  Build
passed #4843
build

00:11:33