Unter QT war das ganz einfach, da hatte jedes MenuItem einfach eine set_accelarator Methode

Mfg & Thx
use_underline :
if True, an underscore in the label text indicates the next character should be underlined and used for the mnemonic accelerator key if it is the first character so marked.
Code: Alles auswählen
quit_item.add_accelerator("activate", self.accel_group, ord("q"), 4, 1)