(self, contexts)
| 76 | self.bindings = [] |
| 77 | |
| 78 | def _check_contexts(self, contexts): |
| 79 | if not contexts: |
| 80 | raise ValueError("Must specify at least one context.") |
| 81 | for c in contexts: |
| 82 | if c not in Contexts: |
| 83 | raise ValueError("Unsupported context: %s" % c) |
| 84 | |
| 85 | def _on_change(self) -> None: |
| 86 | signals.keybindings_change.send() |