def keyPressEvent(self, event):

        shortcut = ClientGUIShortcuts.ConvertKeyEventToShortcut(event)

        if shortcut is not None:

            self._shortcut = shortcut

            self._SetShortcutString()

            self.valueChanged.emit()
示例#2
0
    def keyPressEvent(self, event):

        shortcut = ClientGUIShortcuts.ConvertKeyEventToShortcut(event)

        if shortcut is not None:

            self._shortcut = shortcut

            if self._related_radio is not None:

                self._related_radio.setChecked(True)

            self._SetShortcutString()