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

Method remove_toolitem

lib/matplotlib/backend_bases.py:3589–3611  ·  view source on GitHub ↗

A hook to remove a toolitem from the container. This hook must be implemented in each backend and contains the backend-specific code to remove an element from the toolbar; it is called when `.ToolManager` emits a ``tool_removed_event``. Because some tools a

(self, name)

Source from the content-addressed store, hash-verified

3587 raise NotImplementedError
3588
3589 def remove_toolitem(self, name):
3590 """
3591 A hook to remove a toolitem from the container.
3592
3593 This hook must be implemented in each backend and contains the
3594 backend-specific code to remove an element from the toolbar; it is
3595 called when `.ToolManager` emits a ``tool_removed_event``.
3596
3597 Because some tools are present only on the `.ToolManager` but not on
3598 the `ToolContainerBase`, this method must be a no-op when called on a tool
3599 absent from the container.
3600
3601 .. warning::
3602 This is part of the backend implementation and should
3603 not be called by end-users. They should instead call
3604 `.ToolManager.remove_tool`.
3605
3606 Parameters
3607 ----------
3608 name : str
3609 Name of the tool to remove.
3610 """
3611 raise NotImplementedError
3612
3613 def set_message(self, s):
3614 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected