Method
__init__
(self, master, keybinding_focus_change)
Source from the content-addressed store, hash-verified
| 36 | |
| 37 | class KeyListWalker(urwid.ListWalker): |
| 38 | def __init__(self, master, keybinding_focus_change): |
| 39 | self.keybinding_focus_change = keybinding_focus_change |
| 40 | self.master = master |
| 41 | |
| 42 | self.index = 0 |
| 43 | self.focusobj = None |
| 44 | self.bindings = list(master.keymap.list("all")) |
| 45 | self.set_focus(0) |
| 46 | signals.keybindings_change.connect(self.sig_modified) |
| 47 | |
| 48 | def sig_modified(self): |
| 49 | self.bindings = list(self.master.keymap.list("all")) |
Callers
nothing calls this directly
Tested by
no test coverage detected