matplotlib.backend_managers
#
Bases: object
Event for tool manipulation (add/remove).
Bases: object
Manager for actions triggered by user interactions (key press, toolbar clicks, ...) on a Figure.
Currently toggled tools.
Add tool to ToolManager
.
If successful, adds a new event tool_trigger_{name}
where {name}
is the name of the tool; the event is fired every time the tool is triggered.
Name of the tool, treated as the ID, has to be unique.
Class of the tool to be added. A subclass will be used instead if one was registered for the current canvas class.
Passed to the tool's constructor.
Canvas managed by FigureManager.
Figure that holds the canvas.
Return the tool object with the given name.
For convenience, this passes tool objects through.
ToolBase
Name of the tool, or the tool itself.
Whether a warning should be emitted it no tool with the given name exists.
ToolBase
or None
The tool or None if no tool with the given name exists.
Return the keymap associated with the specified tool.
Name of the Tool.
List of keys associated with the tool.
Emit a ToolManagerMessageEvent
.
Remove tool named name.
Name of the tool.
Bind the given figure to the tools.
Figure
Force tools to update figure.
Connect event with string s to func.
The name of the event. The following events are recognized:
'tool_message_event'
'tool_removed_event'
'tool_added_event'
For every tool added a new event is created
'tool_trigger_TOOLNAME', where TOOLNAME is the id of the tool.
Callback function for the toolmanager event with signature:
def func(event: ToolEvent) -> Any
The callback id for the connection. This can be used in toolmanager_disconnect
.
Disconnect callback id cid.
Example usage:
cid = toolmanager.toolmanager_connect('tool_trigger_zoom', onpress) #...later toolmanager.toolmanager_disconnect(cid)
A dict mapping tool name -> controlled tool.
Trigger a tool and emit the tool_trigger_{name}
event.
Name of the tool.
Object that wishes to trigger the tool.
Original Canvas event or None.
Extra data to pass to the tool when triggering.
Set the keymap to associate with the specified tool.
Name of the Tool.
Keys to associate with the tool.
Bases: object
Event carrying messages from toolmanager.
Messages usually get displayed to the user by the toolbar.
Bases: ToolEvent
Event to inform that a tool has been triggered.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4