'Trigger on a tool
Method to actually trigger the tool'

def _trigger_tool(self, name, sender=None, canvasevent=None, data=None):

    tool = self.get_tool(name)
    if isinstance(tool, tools.ToolToggleBase):
        self._handle_toggle(tool, sender, canvasevent, data)
    tool.trigger(sender, canvasevent, data)
