Return the keymap associated with the specified tool. Parameters ---------- name : str Name of the Tool. Returns ------- list of str List of keys associated with the tool.
(self, name)
| 152 | return self._toggled |
| 153 | |
| 154 | def get_tool_keymap(self, name): |
| 155 | """ |
| 156 | Return the keymap associated with the specified tool. |
| 157 | |
| 158 | Parameters |
| 159 | ---------- |
| 160 | name : str |
| 161 | Name of the Tool. |
| 162 | |
| 163 | Returns |
| 164 | ------- |
| 165 | list of str |
| 166 | List of keys associated with the tool. |
| 167 | """ |
| 168 | |
| 169 | keys = [k for k, i in self._keys.items() if i == name] |
| 170 | return keys |
| 171 | |
| 172 | def _remove_keys(self, name): |
| 173 | for k in self.get_tool_keymap(name): |
no outgoing calls