def keyPressEvent(self, event): shortcut = ClientGUIShortcuts.ConvertKeyEventToShortcut(event) if shortcut is not None: self._shortcut = shortcut self._SetShortcutString() self.valueChanged.emit()
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()