shortcuts
sleap.gui.dialogs.shortcuts
¶
GUI for viewing/modifying keyboard shortcuts.
Classes:
| Name | Description |
|---|---|
ShortcutDialog |
Dialog window for reviewing and modifying the keyboard shortcuts. |
ShortcutDialog
¶
Bases: QDialog
Dialog window for reviewing and modifying the keyboard shortcuts.
Methods:
| Name | Description |
|---|---|
accept |
Triggered when form is accepted; saves the shortcuts. |
info_msg |
Display information about changes. |
load_shortcuts |
Load shortcuts object. |
make_buttons_widget |
Make the form buttons. |
make_column_widget |
Make a single column of shortcut fields. |
make_form |
Creates the form with fields for all shortcuts. |
make_shortcuts_widget |
Make the widget will fields for all shortcuts. |
reset |
Reset to defaults. |
Source code in sleap/gui/dialogs/shortcuts.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
accept()
¶
Triggered when form is accepted; saves the shortcuts.
Source code in sleap/gui/dialogs/shortcuts.py
26 27 28 29 30 31 32 | |
info_msg()
¶
Display information about changes.
Source code in sleap/gui/dialogs/shortcuts.py
34 35 36 37 38 39 40 41 | |
load_shortcuts()
¶
Load shortcuts object.
Source code in sleap/gui/dialogs/shortcuts.py
49 50 51 | |
make_buttons_widget()
¶
Make the form buttons.
Source code in sleap/gui/dialogs/shortcuts.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
make_column_widget(shortcuts)
¶
Make a single column of shortcut fields.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shortcuts
|
List
|
The list of shortcuts to include in this column. |
required |
Returns:
| Type | Description |
|---|---|
QWidget
|
The widget. |
Source code in sleap/gui/dialogs/shortcuts.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
make_form()
¶
Creates the form with fields for all shortcuts.
Source code in sleap/gui/dialogs/shortcuts.py
53 54 55 56 57 58 59 60 | |
make_shortcuts_widget()
¶
Make the widget will fields for all shortcuts.
Source code in sleap/gui/dialogs/shortcuts.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
reset()
¶
Reset to defaults.
Source code in sleap/gui/dialogs/shortcuts.py
43 44 45 46 47 | |