sleap.gui.dialogs.shortcuts

GUI for viewing/modifying keyboard shortcuts.

class sleap.gui.dialogs.shortcuts.ShortcutDialog(*args, **kwargs)[source]

Dialog window for reviewing and modifying the keyboard shortcuts.

accept()[source]

Triggered when form is accepted; saves the shortcuts.

load_shortcuts()[source]

Loads shortcuts object.

make_buttons_widget() → PySide2.QtWidgets.QDialogButtonBox[source]

Makes the form buttons.

make_column_widget(shortcuts: List) → PySide2.QtWidgets.QWidget[source]

Makes a single column of shortcut fields.

Parameters

shortcuts – The list of shortcuts to include in this column.

Returns

The widget.

make_form()[source]

Creates the form with fields for all shortcuts.

make_shortcuts_widget() → PySide2.QtWidgets.QWidget[source]

Makes the widget will fields for all shortcuts.