A hook to toggle a toolitem without firing an event. This hook must be implemented in each backend and contains the backend-specific code to silently toggle a toolbar element. .. warning:: This is part of the backend implementation and should
(self, name, toggled)
| 3565 | raise NotImplementedError |
| 3566 | |
| 3567 | def toggle_toolitem(self, name, toggled): |
| 3568 | """ |
| 3569 | A hook to toggle a toolitem without firing an event. |
| 3570 | |
| 3571 | This hook must be implemented in each backend and contains the |
| 3572 | backend-specific code to silently toggle a toolbar element. |
| 3573 | |
| 3574 | .. warning:: |
| 3575 | This is part of the backend implementation and should |
| 3576 | not be called by end-users. They should instead call |
| 3577 | `.ToolManager.trigger_tool` or `.ToolContainerBase.trigger_tool` |
| 3578 | (which are equivalent). |
| 3579 | |
| 3580 | Parameters |
| 3581 | ---------- |
| 3582 | name : str |
| 3583 | Id of the tool to toggle. |
| 3584 | toggled : bool |
| 3585 | Whether to set this tool as toggled or not. |
| 3586 | """ |
| 3587 | raise NotImplementedError |
| 3588 | |
| 3589 | def remove_toolitem(self, name): |
| 3590 | """ |
no outgoing calls
no test coverage detected