Button.grabShortcut

Button.grabShortcut(self, key: PySide6.QtGui.QKeySequence | PySide6.QtCore.QKeyCombination | PySide6.QtGui.QKeySequence.StandardKey | str | int, context: PySide6.QtCore.Qt.ShortcutContext = Instance(Qt.WindowShortcut)) int