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

Method _tool_toggled_cbk

lib/matplotlib/backend_bases.py:3462–3468  ·  view source on GitHub ↗

Capture the 'tool_trigger_[name]' This only gets used for toggled tools.

(self, event)

Source from the content-addressed store, hash-verified

3460 lambda event: self.remove_toolitem(event.tool.name))
3461
3462 def _tool_toggled_cbk(self, event):
3463 """
3464 Capture the 'tool_trigger_[name]'
3465
3466 This only gets used for toggled tools.
3467 """
3468 self.toggle_toolitem(event.tool.name, event.tool.toggled)
3469
3470 def add_tool(self, tool, group, position=-1):
3471 """

Callers

nothing calls this directly

Calls 1

toggle_toolitemMethod · 0.95

Tested by

no test coverage detected