(self, *args, **kwargs)
| 254 | the cursor when a tool gets triggered. |
| 255 | """ |
| 256 | def __init__(self, *args, **kwargs): |
| 257 | super().__init__(*args, **kwargs) |
| 258 | self._id_drag = None |
| 259 | self._current_tool = None |
| 260 | self._default_cursor = cursors.POINTER |
| 261 | self._last_cursor = self._default_cursor |
| 262 | self.toolmanager.toolmanager_connect('tool_added_event', |
| 263 | self._add_tool_cbk) |
| 264 | for tool in self.toolmanager.tools.values(): # process current tools |
| 265 | self._add_tool_cbk(mpl.backend_managers.ToolEvent( |
| 266 | 'tool_added_event', self.toolmanager, tool)) |
| 267 | |
| 268 | def set_figure(self, figure): |
| 269 | if self._id_drag: |
nothing calls this directly
no test coverage detected