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