Use QtGui.QShortcut : you create it with QKeySequence, and it emits a signal activated()when you enter this key sequence while the shortcut-parent widget has focus (of course, you connect these signals to the slots you have selected, including the "buttons).
source
share