class_docstr: Event to inform that a tool has been triggered.
class_docstr_tok: ["Event","to","inform","that","a","tool","has","been","triggered","."]
code: def __init__(self, name, sender, tool, canvasevent=None, data=None):
      super().__init__(name, sender, tool, data)
      self.canvasevent = canvasevent
  
imports: from matplotlib import _api, backend_tools, cbook, widgets
label_desc: Use image node_id 1 to create a new ToolTriggerEvent object from inherited base classes: ToolEvent with example: obj = ToolTriggerEvent(name, sender, tool, canvasevent, data)