MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_tool_keymap

Method get_tool_keymap

lib/matplotlib/backend_managers.py:154–170  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 6

_remove_keysMethod · 0.95
_format_tool_keymapMethod · 0.80
triggerMethod · 0.80
triggerMethod · 0.80

Calls

no outgoing calls

Tested by 1